Skip site navigation (1) Skip section navigation (2)

ECPG fetch broken after upgrade to 6.5

From: Phil Moors <pmoors(at)phillips(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ECPG fetch broken after upgrade to 6.5
Date: 1999-06-23 22:52:05
Message-ID: 37716515.9D251162@phillips.com (view raw or flat)
Thread:
Lists: 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, enter it 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(at)phillips(dot)com | Speaking for himself only.
--------------------------------------------------------
cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard

Responses

pgsql-interfaces by date

Next:From: Tom LaneDate: 1999-06-23 23:25:22
Subject: Re: [INTERFACES] pgaccess and RH 6.0?
Previous:From: Steven BradleyDate: 1999-06-23 22:05:09
Subject: Performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group