From: | gayathri(dot)annur(at)gmail(dot)com |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #9894: SQLError() is not returns SQL_NO_DATA_FOUND |
Date: | 2014-04-07 11:36:45 |
Message-ID: | 20140407113645.367.41104@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 9894
Logged by: Gayathri
Email address: gayathri(dot)annur(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | nk.schjoedt | 2014-04-07 11:57:24 | BUG #9895: Duplicate pkey |
Previous Message | Marcin Kamionowski | 2014-04-07 08:50:32 | JDBC date before gregorian calendar |