OSDN Git Service

Use double quotes for quoting xml attributes.
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 25 Nov 2007 12:08:11 +0000 (12:08 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 25 Nov 2007 12:08:11 +0000 (12:08 +0000)
src/backend/utils/adt/xml.c

index d50c3c0..7779107 100644 (file)
@@ -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",