Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXBCT-0003wh-TA for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Apr 2014 15:11:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXBCR-0003Al-UG for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Apr 2014 15:11:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WX7rS-0000wG-2A for pgsql-bugs@postgresql.org; Mon, 07 Apr 2014 11:37:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WX7rK-0004tg-Q8 for pgsql-bugs@postgresql.org; Mon, 07 Apr 2014 11:37:09 +0000 MIME-Version: 1.0 Subject: BUG #9894: SQLError() is not returns SQL_NO_DATA_FOUND To: pgsql-bugs@postgresql.org From: gayathri.annur@gmail.com Date: Mon, 07 Apr 2014 11:36:45 +0000 Message-ID: <20140407113645.367.41104@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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