From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: profic@gmail.com
Subject: BUG #15426: A prior column in a default expression of an xmltable() call does not exist
Date: Wed, 10 Oct 2018 17:34:01 +0000
Message-ID: <15426-e2cd2779c744a0ae@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15426
Logged by: Ivan Ustûžanin
Email address: profic@gmail.com
PostgreSQL version: 10.5
Operating system: Any
Description:
Executing
SELECT * FROM xmltable(
'.' PASSING '<r/>'
COLUMNS
c1 Text PATH 'name()',
c2 Text DEFAULT c1
);
complains that column c1 does not exist.
However the documentation states that it is possible to use prior columns in
default expressions of later columns.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, profic@gmail.com
Subject: Re: BUG #15426: A prior column in a default expression of an xmltable() call does not exist
In-Reply-To: <15426-e2cd2779c744a0ae@postgresql.org>
References: <15426-e2cd2779c744a0ae@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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