Skip to Content.
Sympa Menu

freetds - [freetds] [PATCH] support column size for SYBDATETIMN

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Craig A. Berry" <craigberry AT mac.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] [PATCH] support column size for SYBDATETIMN
  • Date: Thu, 20 May 2010 15:43:50 -0500

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:

<https://lists.ibiblio.org/sympa/arc/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

Attachment: 004_sybdatetimn_col_size.patch
Description: Binary data




Archive powered by MHonArc 2.6.24.

Top of Page