mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Use double quotes for quoting xml attributes.
This commit is contained in:
parent
66b1f4daa8
commit
a999ff63ff
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.59 2007/11/20 23:14:41 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.60 2007/11/25 12:08:11 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -3019,7 +3019,7 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
|
||||
|
||||
case INT4OID:
|
||||
appendStringInfo(&result,
|
||||
" <xsd:restriction base='xsd:int'>\n"
|
||||
" <xsd:restriction base=\"xsd:int\">\n"
|
||||
" <xsd:maxInclusive value=\"%d\"/>\n"
|
||||
" <xsd:minInclusive value=\"%d\"/>\n"
|
||||
" </xsd:restriction>\n",
|
||||
@ -3168,7 +3168,7 @@ SPI_sql_row_to_xmlelement(int rownum, StringInfo result, char *tablename,
|
||||
if (isnull)
|
||||
{
|
||||
if (nulls)
|
||||
appendStringInfo(result, " <%s xsi:nil='true'/>\n", colname);
|
||||
appendStringInfo(result, " <%s xsi:nil=\"true\"/>\n", colname);
|
||||
}
|
||||
else
|
||||
appendStringInfo(result, " <%s>%s</%s>\n",
|
||||
|
Loading…
Reference in New Issue
Block a user