aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2007-01-25 11:53:52 +0000
committerPeter Eisentraut <peter_e@gmx.net>2007-01-25 11:53:52 +0000
commit22bd156ff0b6727c1f5fb6069690f7e2a4cabcac (patch)
treec27b205297af200b7ba078441186e3c89d24f6a8 /src/backend/executor
parent9597446d117acab8663b785c10998d92cbd1db40 (diff)
downloadpostgresql-22bd156ff0b6727c1f5fb6069690f7e2a4cabcac.tar.gz
postgresql-22bd156ff0b6727c1f5fb6069690f7e2a4cabcac.zip
Various fixes in the logic of XML functions:
- Add new SQL command SET XML OPTION (also available via regular GUC) to control the DOCUMENT vs. CONTENT option in implicit parsing and serialization operations. - Subtle corrections in the handling of the standalone property in xmlroot(). - Allow xmlroot() to work on content fragments. - Subtle corrections in the handling of the version property in xmlconcat(). - Code refactoring for producing XML declarations.
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/execQual.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c
index 60f9d35f1f7..75a9e42a24d 100644
--- a/src/backend/executor/execQual.c
+++ b/src/backend/executor/execQual.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.208 2007/01/20 09:27:19 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/execQual.c,v 1.209 2007/01/25 11:53:50 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2797,10 +2797,7 @@ ExecEvalXml(XmlExprState *xmlExpr, ExprContext *econtext,
e = (ExprState *) lthird(xmlExpr->args);
value = ExecEvalExpr(e, econtext, &isnull, NULL);
- if (isnull)
- standalone = 0;
- else
- standalone = (DatumGetBool(value) ? 1 : -1);
+ standalone = DatumGetInt32(value);
*isNull = false;