pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6395: Invalid XPath expression
3+ messages / 3 participants
[nested] [flat]
* BUG #6395: Invalid XPath expression
@ 2012-01-12 15:40 franco.ricci@phys.uniroma1.it
2012-01-12 15:58 ` Re: BUG #6395: Invalid XPath expression Florian Weimer <fweimer@bfk.de>
0 siblings, 1 reply; 3+ messages in thread
From: franco.ricci@phys.uniroma1.it @ 2012-01-12 15:40 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6395
Logged by: Franco Ricci
Email address: franco.ricci@phys.uniroma1.it
PostgreSQL version: 9.1.2
Operating system: FreeBSD 9
Description:
Query at bottom returns:
"ERROR: invalid XPath expression
DETAIL: Invalid expression
********** Error **********
ERROR: invalid XPath expression
SQL state: XX000
Detail: Invalid expression"
The same query on PostgreSQL 9.x works fine!
------
SELECT
xpath('/llrp:RO_ACCESS_REPORT/llrp:TagReportData/llrp:*[contains(name(),\"EPC\")]/llrp:EPC/text()',
'<llrp:RO_ACCESS_REPORT
xmlns:llrp="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";
Version="1" MessageID="8">
<llrp:TagReportData>
<llrp:EPC_96>
<llrp:EPC>04954524D0004980B0DF0001</llrp:EPC>
</llrp:EPC_96>
<llrp:ROSpecID>
<llrp:ROSpecID>100</llrp:ROSpecID>
</llrp:ROSpecID>
</llrp:TagReportData>
</llrp:RO_ACCESS_REPORT>'::xml
, ARRAY[ARRAY['llrp',
'http://www.llrp.org/ltk/schema/core/encoding/xml/1.0';]])
----------
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6395: Invalid XPath expression
2012-01-12 15:40 BUG #6395: Invalid XPath expression franco.ricci@phys.uniroma1.it
@ 2012-01-12 15:58 ` Florian Weimer <fweimer@bfk.de>
2012-01-12 16:28 ` Re: BUG #6395: Invalid XPath expression Franco Ricci <franco.ricci@phys.uniroma1.it>
0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2012-01-12 15:58 UTC (permalink / raw)
To: franco.ricci@phys.uniroma1.it; +Cc: pgsql-bugs
* franco ricci:
> The same query on PostgreSQL 9.x works fine!
I think you mean 9.0.
> xpath('/llrp:RO_ACCESS_REPORT/llrp:TagReportData/llrp:*[contains(name(),\"EPC\")]/llrp:EPC/text()',
Does it work if you drop the '\'?
PostgreSQL 9.1 defaults to standard_conforming_strings=on. See the
release notes for details.
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6395: Invalid XPath expression
2012-01-12 15:40 BUG #6395: Invalid XPath expression franco.ricci@phys.uniroma1.it
2012-01-12 15:58 ` Re: BUG #6395: Invalid XPath expression Florian Weimer <fweimer@bfk.de>
@ 2012-01-12 16:28 ` Franco Ricci <franco.ricci@phys.uniroma1.it>
0 siblings, 0 replies; 3+ messages in thread
From: Franco Ricci @ 2012-01-12 16:28 UTC (permalink / raw)
To: Florian Weimer <fweimer@bfk.de>; +Cc: pgsql-bugs
On 12-1-2012 4:58 PM, Florian Weimer wrote:
> * franco ricci:
>
>> The same query on PostgreSQL 9.x works fine!
> I think you mean 9.0.
Yes, I mean 9.0.5
>
>> xpath('/llrp:RO_ACCESS_REPORT/llrp:TagReportData/llrp:*[contains(name(),\"EPC\")]/llrp:EPC/text()',
> Does it work if you drop the '\'?
Thanks a lot.
Without '\' it works!!
>
> PostgreSQL 9.1 defaults to standard_conforming_strings=on. See the
> release notes for details.
>
Regards
Franco Ricci
--
Franco Ricci
LabIT
Sviluppo Servizi Informatici
Dipartimento di Fisica
Università di Roma "La Sapienza"
Piazzale Aldo Moro, 5
00185
Roma
Italy
tel +390649913449
fax +39064463158
Attachments:
franco_ricci.vcf (text/x-vcard, 345B) download
begin:vcard
fn:Franco Ricci
n:Ricci;Franco
org;quoted-printable:Dipartimento di Fisica, Universit=C3=A0 di Roma "La Sapienza"
adr:;;Piazzale Aldo Moro, 2;Roma;;00185;Italy
email;internet:franco.ricci@phys.uniroma1.it, franco.ricci@uniroma1.it
title:LabIT
tel;work:+390649913449
tel;fax:+39064463158
url:www.phys.uniroma1.it
version:2.1
end:vcard
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-01-12 16:28 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-01-12 15:40 BUG #6395: Invalid XPath expression franco.ricci@phys.uniroma1.it
2012-01-12 15:58 ` Florian Weimer <fweimer@bfk.de>
2012-01-12 16:28 ` Franco Ricci <franco.ricci@phys.uniroma1.it>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox