From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: New libpq based driver snapshot 08.01.0003 available
Date: Wed, 03 Aug 2005 21:34:13 +0200
Message-ID: <42F11C35.4030105@dunaweb.hu> (raw)
In-Reply-To: <42F1081C.6020509@dunaweb.hu>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9791@ratbert.vale-housing.co.uk>
<42F1081C.6020509@dunaweb.hu>
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
Attachments:psqlodbc-fetch-null-fix.patch (text/x-patch, 383B) download--- 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;
}
}
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: zboszor@dunaweb.hu, dpage@vale-housing.co.uk
Subject: Re: New libpq based driver snapshot 08.01.0003 available
In-Reply-To: <42F11C35.4030105@dunaweb.hu>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9791@ratbert.vale-housing.co.uk> <42F1081C.6020509@dunaweb.hu> <42F11C35.4030105@dunaweb.hu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox