Skip to Content.
Sympa Menu

freetds - Re: Big Endian Patches

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Big Endian Patches
  • Date: Tue, 13 Feb 2001 13:41:37 -0800 (PST)


David Ramsey writes:
> Ok, now I am seeing some weird behavior. With the patch in place, I can
> use SQSH 1.7 and access the SQL Server database and get proper date
> outputs. But using the same libraries to link DBD::Sybase against and
> running the same query, I am getting the dates in gibberish now. I am
> quite certain this is a byte ordering issue but is there anywhere else
> to look inside Free TDS or do I need to dig into the DBD::Sybase code?

DBD::Sybase just does a ct_bind() with a CS_CHAR_TYPE target, whereas
sqsh calls ct_bind() to the native datatype, and then calls
cs_convert() to display the data item.

This might point at some weirdness in either the implementation of
cs_convert() or ct_bind() in the FreeTDS libs.

Michael
--
Michael Peppler - Data Migrations Inc. - mpeppler AT peppler.org
http://www.mbay.net/~mpeppler - mpeppler AT mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list AT isug.com




Archive powered by MHonArc 2.6.24.

Top of Page