X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EA0C6529B7 for ; Wed, 3 Aug 2005 16:14:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68403-01 for ; Wed, 3 Aug 2005 19:13:54 +0000 (GMT) Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 3CDFD5293E for ; Wed, 3 Aug 2005 16:13:54 -0300 (ADT) Received: from szolnok.dunaweb.hu (dunaweb1.euroweb.hu [195.184.0.6]) by svr2.postgresql.org (Postfix) with ESMTP id 19454F0B00 for ; Wed, 3 Aug 2005 20:09:43 +0100 (BST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by szolnok.dunaweb.hu (Postfix) with ESMTP id A10E489114C; Wed, 3 Aug 2005 21:13:15 +0200 (CEST) Message-ID: <42F11C35.4030105@dunaweb.hu> Date: Wed, 03 Aug 2005 21:34:13 +0200 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: Dave Page Cc: pgsql-odbc@postgresql.org Subject: Re: New libpq based driver snapshot 08.01.0003 available References: <42F1081C.6020509@dunaweb.hu> In-Reply-To: <42F1081C.6020509@dunaweb.hu> Content-Type: multipart/mixed; boundary="------------090202040905000604080809" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.051 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/38 X-Sequence-Number: 5677 This is a multi-part message in MIME format. --------------090202040905000604080809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Zoltan Boszormenyi írta: > The old version returns COPY_OK for both cases, although the logging > in the new version is nice. Which is the correct behaviour? I would like > to be able to ignore NULL notification. And the attached patch indeed fixes it. Best regards, Zoltán Böszörményi --------------090202040905000604080809 Content-Type: text/x-patch; name="psqlodbc-fetch-null-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="psqlodbc-fetch-null-fix.patch" --- psqlodbc-08.01.0103/convert.c.old 2005-08-03 21:24:03.011720344 +0200 +++ psqlodbc-08.01.0103/convert.c 2005-08-03 21:24:19.429224504 +0200 @@ -493,7 +493,7 @@ { SC_set_error(stmt, STMT_RETURN_NULL_WITHOUT_INDICATOR, "StrLen_or_IndPtr was a null pointer and NULL data was retrieved"); SC_log_error(func, "", stmt); - return SQL_ERROR; + return COPY_OK; } } --------------090202040905000604080809--