From: gayathri.annur@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #9894: SQLError() is not returns SQL_NO_DATA_FOUND
Date: Mon, 07 Apr 2014 11:36:45 +0000
Message-ID: <20140407113645.367.41104@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 9894
Logged by: Gayathri
Email address: gayathri.annur@gmail.com
PostgreSQL version: 9.1.1
Operating system: redhat
Description:
Hi ALL,
SQLError() is not returning SQL_NO_DATA_FOUND after driver upgrade from 7 to
9.
my code looks like
RETCODE rc = SQL_SUCCESS;
while ( rc != SQL_NO_DATA_FOUND)
{
rc = SQLError(henv, hdbc, hstmt, sqlstate, &nativeerr, errmsg,
SQL_MAX_MESSAGE_LENGTH - 1, &actualmsglen);
}
And whenever I try to access an missing table, I am getting sqlstate as
42P01 and rc as SQL_SUCCESS and it is not coming out of the loop. The same
code worked fine for earlier version.
Please let me know how can I proceed further. Shall I need to handle each
state separately?
Thanks,
Gayathri
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: gayathri.annur@gmail.com
Subject: Re: BUG #9894: SQLError() is not returns SQL_NO_DATA_FOUND
In-Reply-To: <20140407113645.367.41104@wrigleys.postgresql.org>
References: <20140407113645.367.41104@wrigleys.postgresql.org>
* 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