From: Bernard ISAMBERT <isambert@sib.fr>
To: pgsql-interfaces@postgresql.org
Subject: Problem with ecpg and 7.1beta1
Date: Thu, 21 Dec 2000 12:05:42 +0100
Message-ID: <3A41E406.7CAD9EB6@sib.fr> (raw)
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)
__________________________________________________
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: isambert@sib.fr
Subject: Re: Problem with ecpg and 7.1beta1
In-Reply-To: <3A41E406.7CAD9EB6@sib.fr>
* 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