Обсуждение: Problem with ecpg and 7.1beta1

Поиск
Список
Период
Сортировка

Problem with ecpg and 7.1beta1

От
Bernard ISAMBERT
Дата:
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)
__________________________________________________


Re: Problem with ecpg and 7.1beta1

От
Michael Meskes
Дата:
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!