diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2007-01-19 16:58:46 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2007-01-19 16:58:46 +0000 |
commit | 4b48ad4fb2edf897b87d04467f8eaaaba82a258f (patch) | |
tree | ba5d42f78007a28afcb0f18adae57243c6559fb1 /src/include/utils/xml.h | |
parent | 5b4a08896bd6ee7d93f74c77f61d3518deda8fd5 (diff) | |
download | postgresql-4b48ad4fb2edf897b87d04467f8eaaaba82a258f.tar.gz postgresql-4b48ad4fb2edf897b87d04467f8eaaaba82a258f.zip |
Add support for converting binary values (i.e. bytea) into xml values,
with new GUC parameter "xmlbinary" that controls the output encoding, as
per SQL/XML standard.
Diffstat (limited to 'src/include/utils/xml.h')
-rw-r--r-- | src/include/utils/xml.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/utils/xml.h b/src/include/utils/xml.h index 9e576bdecbe..ec39368891a 100644 --- a/src/include/utils/xml.h +++ b/src/include/utils/xml.h @@ -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/include/utils/xml.h,v 1.10 2007/01/14 13:11:54 petere Exp $ + * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.11 2007/01/19 16:58:46 petere Exp $ * *------------------------------------------------------------------------- */ @@ -43,4 +43,12 @@ extern char *map_sql_identifier_to_xml_name(char *ident, bool fully_escaped); extern char *map_xml_name_to_sql_identifier(char *name); extern char *map_sql_value_to_xml_value(Datum value, Oid type); +typedef enum +{ + XMLBINARY_BASE64, + XMLBINARY_HEX +} XmlBinaryType; + +extern XmlBinaryType xmlbinary; + #endif /* XML_H */ |