Re: PostgreSQL vs SQL/XML Standards
Thomas Kellerer <spam_eater@gmx.net>
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-hackers@postgresql.org
Date: 2018-10-29T10:40:49Z
Lists: pgsql-hackers
>> I have a access to too old 11.2 Oracle. There I had to modify query >> because there is not boolean type. I replaced bool by int, but I got a >> error >> ORA-19224:XPTY-004 .. expected node()*, got xs:string - it doesn't work >> with/without string() wrappings. >> >The problem is in last line - the expression "sale/@taxable = false()" is >not valid on Oracle. Using string() wrapping is a issue, because it returns ">true", "false", but Oracle int doesn't accept it. That line seems to be valid - but you need to pass an XMLTYPE value, not a VARCHAR https://dbfiddle.uk/?rdbms=oracle_11.2&fiddle=21cdf890a26e97fa8667b2d6a960bd33 As far as I can tell inside XQuery Oracle does support boolean, but not as a return type -- Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html
Commits
-
Improve documentation about our XML functionality
- 728c49779ba8 11.6 landed
- 603a28b44973 10.11 landed
-
Improve documentation about our XML functionality.
- 12d46ac392d0 12.0 landed
-
Add volatile qualifier missed in commit 2e616dee9.
- b2b819019f44 12.0 landed
-
Fix crash with old libxml2
- 2e616dee9e60 12.0 landed
-
Fix minor deficiencies in XMLTABLE, xpath(), xmlexists()
- 251cf2e27bec 12.0 cited
-
Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
- eaaa5986ad03 12.0 landed
-
doc: Update README.links
- b060e6c1f5b4 12.0 landed
-
XPath fixes:
- 3963574d1338 8.3.0 cited