ECPG fetch broken after upgrade to 6.5 - Mailing list pgsql-interfaces

From Phil Moors
Subject ECPG fetch broken after upgrade to 6.5
Date
Msg-id 37716515.9D251162@phillips.com
Whole thread Raw
Responses Re: [INTERFACES] ECPG fetch broken after upgrade to 6.5  (Michael Meskes <meskes@postgresql.org>)
Re: [INTERFACES] ECPG fetch broken after upgrade to 6.5  (Michael Meskes <meskes@postgresql.org>)
Re: [INTERFACES] ECPG fetch broken after upgrade to 6.5  (Michael Meskes <meskes@postgresql.org>)
List pgsql-interfaces
Hi!

Has anyone else had this problem? I have two programs that ECPG processes
flawlessly under 6.4. However, under 6.5, I get:

ml1.sql:364: parse error

line 364 is: EXEC SQL FETCH pick_ip INTO :tWatMacAddress;

Also of note:

One of my programs contained no SQL code. However, I tend to run it through ecpg
out of habit. The old version would (correctly) leave things alone. However, the
new version grabs double slashes, even if they are embedded in within double
quotes. It turned these two lines:
       printf("<FORM METHOD=POST ACTION=\"http://pm2/cgi-bin/macs/ml1\">\n");       printf("Select the type of address,
enterit into the form and \n");
 

Into this (all one line):

printf("<FORM METHOD=POST ACTION=\"http:        printf("Select the type of
address, enter it into the form and \n");

TIA
Phil
-- 
pmoors@phillips.com | Speaking for himself only.
--------------------------------------------------------
cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard


pgsql-interfaces by date:

Previous
From: Steven Bradley
Date:
Subject: Performance
Next
From: Kristofer Munn
Date:
Subject: Perl 5 Interface on 6.5 and lo_creat/lo_open problem