Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH4ye-0002q5-Mg for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Oct 2018 10:40:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gH4yc-00005E-Lt for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Oct 2018 10:40:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gH4yc-000057-Bf for pgsql-hackers@lists.postgresql.org; Mon, 29 Oct 2018 10:40:54 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gH4yY-0006YK-VJ for pgsql-hackers@postgresql.org; Mon, 29 Oct 2018 10:40:53 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id D7163FFB53C2 for ; Mon, 29 Oct 2018 03:40:49 -0700 (MST) Date: Mon, 29 Oct 2018 03:40:49 -0700 (MST) From: Thomas Kellerer To: pgsql-hackers@postgresql.org Message-ID: <1540809649878-0.post@n3.nabble.com> In-Reply-To: References: <22886.1540478379@sss.pgh.pa.us> <2a7715e1-6170-c3f6-12c7-7e5dda84cecd@anastigmatix.net> <20181025150849.j4py2nkqjx3cgw26@alvherre.pgsql> <5BD24640.50105@anastigmatix.net> <5BD29725.1020603@anastigmatix.net> Subject: Re: PostgreSQL vs SQL/XML Standards MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >> 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