pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with ecpg and 7.1beta1
2+ messages / 2 participants
[nested] [flat]
* Problem with ecpg and 7.1beta1
@ 2000-12-21 11:05 Bernard ISAMBERT <isambert@sib.fr>
2000-12-22 12:44 ` Re: Problem with ecpg and 7.1beta1 Michael Meskes <meskes@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: Bernard ISAMBERT @ 2000-12-21 11:05 UTC (permalink / raw)
To: pgsql-interfaces
I have a problem with ecpg 2.8 from 7.1beta1
The source:
EXEC SQL BEGIN DECLARE SECTION;
varchar O_name[20];
varchar O_pass[20];
varchar O_db[12];
EXEC SQL END DECLARE SECTION;
...
EXEC SQL CONNECT TO :O_db USER :O_name IDENTIFIED BY :O_pass;
that last line is processed by ecpg as
{ ECPGconnect(__LINE__, O_db , "?" , "?" , NULL, 0); }
which can't compile: ECPGconnect expects a char* and O_db is a struct.
with ecpg 2.7 from 7.0.3 and previous, it was:
{ ECPGconnect(__LINE__, O_db.arr , O_name.arr , O_pass.arr , NULL, 0); }
which is ok.
What has happened? What must I do?
--
Bernard ISAMBERT (isambert@sib.fr)
Syndicat Interhospitalier de Bretagne (www.sib.fr)
__________________________________________________
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with ecpg and 7.1beta1
2000-12-21 11:05 Problem with ecpg and 7.1beta1 Bernard ISAMBERT <isambert@sib.fr>
@ 2000-12-22 12:44 ` Michael Meskes <meskes@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Meskes @ 2000-12-22 12:44 UTC (permalink / raw)
To: Bernard ISAMBERT <isambert@sib.fr>; +Cc: pgsql-interfaces
On Thu, Dec 21, 2000 at 12:05:42PM +0100, Bernard ISAMBERT wrote:
> I have a problem with ecpg 2.8 from 7.1beta1
> ...
I'm just committed a fix. Current CVS should work now.
Michael
--
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-22 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-21 11:05 Problem with ecpg and 7.1beta1 Bernard ISAMBERT <isambert@sib.fr>
2000-12-22 12:44 ` Michael Meskes <meskes@postgresql.org>
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