[freetds] [PATCH] support column size for SYBDATETIMN
Craig A. Berry
craigberry at mac.com
Thu May 20 16:43:50 EDT 2010
I noticed with fisql recently that when selecting datetime columns the
column width for display was not getting calculated correctly. It
turns out none of the various implementations of get_printable_size()
was handling columns of SYBDATETIMN type, though we were handling
other datetime types. The attached patch simply adds SYDATETIMN to
the list in the three relevant places I could find.
I believe this will correct the problem reported here:
<http://lists.ibiblio.org/pipermail/freetds/2010q2/025734.html>
though no guarantees.
Three files affected:
% lsdiff -s --strip=1 004_sybdatetimn_col_size.patch
! src/apps/bsqldb.c
! src/apps/fisql/fisql.c
! src/dblib/dblib.c
________________________________________
Craig A. Berry
mailto:craigberry at mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 004_sybdatetimn_col_size.patch
Type: application/octet-stream
Size: 1296 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20100520/f7cf430c/attachment.obj
More information about the FreeTDS
mailing list