From: Phil Moors <pmoors@phillips.com>
To: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: No such connection NULL from ECPG
Date: Thu, 24 Jun 1999 18:19:39 -0400
Message-ID: <3772AEFB.78E1469F@phillips.com> (raw)
My program compiles without errors. When the binary is run, I get:
No such connection NULL from line 384.
Line 384 is:
while(!sqlca.sqlcode)
{ blah blah blah }
My connect line is 374:
EXEC SQL CONNECT 'macs';
Ecpg expands this to:
{ ECPGconnect(__LINE__, NULL,"macs",NULL,NULL, 0);}
I found a post in the 'general' mailing list from 1998 that suggests that
the expansion should be:
{ ECPGconnect(__LINE__, "macs",NULL,NULL,NULL, 0);}
Am I barking up the wrong tree?
I recompiled and installed ecpg as root just to make sure I was not missing
anything and still get the same expansion.
TIA
Phil
--
pmoors@phillips.com | Speaking for himself only.
--------------------------------------------------------
What if there were no hypothetical situations? --Andrew Kohlsmith
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: pmoors@phillips.com
Subject: Re: No such connection NULL from ECPG
In-Reply-To: <3772AEFB.78E1469F@phillips.com>
* 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