freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Min <pingminadmin AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Problem with Set TEXT field to NULL
- Date: Thu, 12 Feb 2009 11:19:51 -0500
Hello,
Thanks for the confirm and the patch. But this is related to the TEXT
fields. So I add the following to the token.c. It seems working for me. But
not sure if it break any else. Can some one confirm if it is OK?
--- freetds-0.82/src/tds/token.c 2008-01-27 10:41:23.000000000 +0000
+++ patch/src/tds/token.c 2009-02-12 16:11:40.000000000 +0000
@@ -1946,6 +1946,8 @@
tds_get_n(tds, blob->textptr, 16);
tds_get_n(tds, blob->timestamp, 8);
colsize = tds_get_int(tds);
+ if (colsize == 0)
+ colsize = -1;
} else {
colsize = -1;
}
Min
2009/2/12 Teemu Torma <teemu AT torma.org>
> On Wednesday 11 February 2009 05:12:40 James K. Lowden wrote:
> > Anyone got a patch? I'm not going to be able to look into this for a few
> > weeks.
>
> Does this patch help? I just yesterday updated to 0.82 and noticed that
> long
> varchar columns (> 255) do not receive null status. The attached appears
> to
> fix this.
>
> Teemu
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
>
-
[freetds] Problem with Set TEXT field to NULL,
Min, 02/09/2009
- <Possible follow-up(s)>
-
[freetds] Problem with Set TEXT field to NULL,
Min Admin, 02/09/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
Min, 02/09/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
James K. Lowden, 02/10/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
Teemu Torma, 02/12/2009
- Re: [freetds] Problem with Set TEXT field to NULL, Min, 02/12/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
Teemu Torma, 02/12/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
James K. Lowden, 02/10/2009
-
Re: [freetds] Problem with Set TEXT field to NULL,
Min, 02/09/2009
Archive powered by MHonArc 2.6.24.