Re: core dump using Pro*C on CONNECT

From: thumor <member34030_at_dbforums.com>
Date: Mon, 28 Jul 2003 15:48:36 +0000
Message-ID: <3157120.1059407316_at_dbforums.com>


Originally posted by Volker Hetzer
> "thumor" schrieb im Newsbeitrag
> news:3148847.1059070191_at_dbforums.com"]news:3148847.1059070191_at_d-
> bforums.com[/url]...
> > Line of code in my Pro*C file:
> >
> > strcpy(Username, user_id);
> > strcpy(Userpass, user_pw);
> > strcpy(DBname, db_name);
> > strcat(Username, '\0');
> > strcat(Userpass, '\0');
> > strcat(DBname, '\0');
> > EXEC SQL CONNECT :Username IDENTIFIED BY :Userpass AT
> DB_NAME
> > USING :DBname;
> Had the same problem on linux. Workaround:
> EXEC SQL CONNECT :Username_at_DBname IDENTIFIED BY :Userpass
>
> Lots of Greetings!
> Volker

Should this be like
EXEC SQL CONNECT :Username_at_:DBname IDENTIFIED BY :Userpass;

Note- The colon before DBname.

??

--
Posted via http://dbforums.com
Received on Mon Jul 28 2003 - 17:48:36 CEST

Original text of this message