Re: Problem with Set TEXT field to NULL
Teemu Torma <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds
freetds-null.patch
(text/x-patch, 260 B)
diff --git a/src/tds/token.c b/src/tds/token.c --- a/src/tds/token.c +++ b/src/tds/token.c @@ -1952,6 +1952,8 @@ break; case 5: colsize = tds_get_int(tds); + if (colsize == 0) + colsize = -1; break; case 2: colsize = tds_get_smallint(tds);