|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group |
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.27 2007/02/11 22:18:15 petere Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.28 2007/02/13 15:56:12 mha Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -1320,16 +1320,16 @@ is_valid_xml_namechar(pg_wchar c) |
1320 | 1320 | char* |
1321 | 1321 | map_sql_identifier_to_xml_name(char*ident,boolfully_escaped,boolescape_period) |
1322 | 1322 | { |
| 1323 | +#ifdefUSE_LIBXML |
| 1324 | +StringInfoDatabuf; |
| 1325 | +char*p; |
| 1326 | + |
1323 | 1327 | /* |
1324 | 1328 | * SQL/XML doesn't make use of this case anywhere, so it's |
1325 | 1329 | * probably a mistake. |
1326 | 1330 | */ |
1327 | 1331 | Assert(fully_escaped|| !escape_period); |
1328 | 1332 |
|
1329 | | -#ifdefUSE_LIBXML |
1330 | | -StringInfoDatabuf; |
1331 | | -char*p; |
1332 | | - |
1333 | 1333 | initStringInfo(&buf); |
1334 | 1334 |
|
1335 | 1335 | for (p=ident;*p;p+=pg_mblen(p)) |
|