File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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.25 2007/02/03 14:06:55 petere Exp $
10
+ * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.26 2007/02/10 18:47:41 petere Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -1482,6 +1482,14 @@ map_sql_value_to_xml_value(Datum value, Oid type)
1482
1482
bool isvarlena ;
1483
1483
char * p , * str ;
1484
1484
1485
+ if (type == BOOLOID )
1486
+ {
1487
+ if (DatumGetBool (value ))
1488
+ return "true" ;
1489
+ else
1490
+ return "false" ;
1491
+ }
1492
+
1485
1493
getTypeOutputInfo (type , & typeOut , & isvarlena );
1486
1494
str = OidOutputFunctionCall (typeOut , value );
1487
1495
You can’t perform that action at this time.
0 commit comments