[freetds] [PATCH] support column size for SYBDATETIMN

Frediano Ziglio freddy77 at gmail.com
Fri May 21 11:24:03 EDT 2010


2010/5/20 Craig A. Berry <craigberry at mac.com>:
> 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
>
>

Applied

freddy77



More information about the FreeTDS mailing list