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;
}
}