Skip to content

Commit 2b477a2

Browse files
committed
Add missing closing / in xsd:restriction, and remove some unnecessary
spaces for consistency. Per bug #3734 from Ben Leslie; fix by Euler Taveira de Oliveira.
1 parent 20a8825 commit 2b477a2

File tree

1 file changed

+5
-5
lines changed
  • src/backend/utils/adt

1 file changed

+5
-5
lines changed

src/backend/utils/adt/xml.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.55 2007/11/10 18:51:20 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.56 2007/11/10 19:29:54 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2707,11 +2707,11 @@ map_sql_schema_to_xmlschema_types(Oid nspid, List *relid_list, bool nulls,
27072707

27082708
if (!tableforest)
27092709
appendStringInfo(&result,
2710-
" <xsd:element name=\"%s\" type=\"%s\" />\n",
2710+
" <xsd:element name=\"%s\" type=\"%s\"/>\n",
27112711
xmltn, tabletypename);
27122712
else
27132713
appendStringInfo(&result,
2714-
" <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\" />\n",
2714+
" <xsd:element name=\"%s\" type=\"%s\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n",
27152715
xmltn, tabletypename);
27162716
}
27172717

@@ -2773,7 +2773,7 @@ map_sql_catalog_to_xmlschema_types(List *nspid_list, bool nulls,
27732773
NULL);
27742774

27752775
appendStringInfo(&result,
2776-
" <xsd:element name=\"%s\" type=\"%s\" />\n",
2776+
" <xsd:element name=\"%s\" type=\"%s\"/>\n",
27772777
xmlsn, schematypename);
27782778
}
27792779

@@ -3111,7 +3111,7 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
31113111
base_typeoid = getBaseTypeAndTypmod(typeoid, &base_typmod);
31123112

31133113
appendStringInfo(&result,
3114-
" <xsd:restriction base=\"%s\">\n",
3114+
" <xsd:restriction base=\"%s\"/>\n",
31153115
map_sql_type_to_xml_name(base_typeoid, base_typmod));
31163116
}
31173117
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy