BUG #5489: SELECT ... RETURNING INTO ... in ecpg - Mailing list pgsql-bugs

From Alexander
Subject BUG #5489: SELECT ... RETURNING INTO ... in ecpg
Date
Msg-id 201006032017.o53KHQGJ038090@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5489: SELECT ... RETURNING INTO ... in ecpg  (Michael Meskes <meskes@postgresql.org>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      5489
Logged by:          Alexander
Email address:      goal81@gmail.com
PostgreSQL version: 8.3.11
Operating system:   CentOS 5.4
Description:        SELECT ... RETURNING INTO ... in ecpg
Details:

I've been using PostgreSQL since version 8.2.
As I saw, ecpg preprocessor is unable to handle "SELECT ... RETURNING INTO
... " queries due to the following line in
src/interfaces/ecpg/preproc/preproc.y:

returning_clause:  RETURNING target_list { $$ = ...

Changing this line to:

returning_clause:  RETURNING target_list ecpg_into { $$ = ...

fixes this lack.

pgsql-bugs by date:

Previous
From: Claudio Freire
Date:
Subject: Re: BUG #5443: Undetected deadlock situation
Next
From: Mark Kirkwood
Date:
Subject: Re: Bad optimizer data for xml (WAS: xml data type implications of no =)