freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Damien Churchill <damoxc AT gmail.com>
- To: "avictor.za AT gmail.com" <avictor.za AT gmail.com>
- Cc: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Empty string in db-lib
- Date: Mon, 10 May 2010 11:20:41 +0100
On 10 May 2010 08:22, avictor.za AT gmail.com <avictor.za AT gmail.com> wrote:
> hi,
>
>>>> Is it possible to send an empty string as a parameter when making rpc
>>>> calls? All my efforts so far seem to result in the parameter ending up
>>>> being NULL when doing a trace on the server!
>>>
>>> It works. Cf. src/dblib/unittests/rpc.c.
>
>>> According to Sybase, "If the value of the RPC parameter is NULL, pass
>>> datalen as 0, even if type is a fixed-length datatype." That's what the
>>> unit test does, and the server recognizes them as NULL.
>
>> >From that it looks like it isn't possible to just send an empty string
>> '' which of course is different to NULL? Is this a limitation of
>> db-lib or the TDS protocol?
>
> We had the same issue with CTLib.
> Search mailing-list archive for "FreeTDS always setting empty
> VARCHAR's to NULL" (24 May 2009).
>
> A similar fix might be required for dblib.
>
>
Ahh excellent, I will have to investigate this a bit further once I
have my machine back up and running! Thanks for pointing me in the
right direction!
Damien
-
Re: [freetds] Empty string in db-lib,
James K. Lowden, 05/06/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/07/2010
-
Re: [freetds] Empty string in db-lib,
avictor.za AT gmail.com, 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Jackson, Craig (Gale), 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/10/2010
- Re: [freetds] Empty string in db-lib, Frediano Ziglio, 05/11/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Jackson, Craig (Gale), 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/10/2010
-
Re: [freetds] Empty string in db-lib,
avictor.za AT gmail.com, 05/10/2010
-
Re: [freetds] Empty string in db-lib,
Damien Churchill, 05/07/2010
Archive powered by MHonArc 2.6.24.