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

Problem with ecpg and 7.1beta1

From: Bernard ISAMBERT <isambert(at)sib(dot)fr>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problem with ecpg and 7.1beta1
Date: 2000-12-21 11:05:42
Message-ID: 3A41E406.7CAD9EB6@sib.fr (view raw or flat)
Thread:
Lists: 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(at)sib(dot)fr)
Syndicat Interhospitalier de Bretagne (www.sib.fr)
__________________________________________________

Responses

pgsql-interfaces by date

Next:From: J. 'FIK'BrandDate: 2000-12-21 11:16:17
Subject: ODBC, Access and foreign key (part 2)
Previous:From: Michael Miyabara-McCaskeyDate: 2000-12-21 05:36:51
Subject: regcomp failed with error empty (sub)expression?

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