Re: New libpq based driver snapshot 08.01.0003 available - Mailing list pgsql-odbc

From Zoltan Boszormenyi
Subject Re: New libpq based driver snapshot 08.01.0003 available
Date
Msg-id 42F11C35.4030105@dunaweb.hu
Whole thread Raw
In response to Re: New libpq based driver snapshot 08.01.0003 available  (Zoltan Boszormenyi <zboszor@dunaweb.hu>)
Responses Re: New libpq based driver snapshot 08.01.0003 available
List pgsql-odbc
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
--- 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
wasretrieved");     
             SC_log_error(func, "", stmt);
-            return    SQL_ERROR;
+            return    COPY_OK;
         }
     }


pgsql-odbc by date:

Previous
From: Zoltan Boszormenyi
Date:
Subject: Re: New libpq based driver snapshot 08.01.0003 available
Next
From: Zoltan Boszormenyi
Date:
Subject: Re: New libpq based driver snapshot 08.01.0003 available