freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Mark J. Lilback" <mark AT lilback.com>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: RE: BIGENDIAN
- Date: Thu, 12 Jul 2001 10:37:01 -0400
At 7:13 AM -0400 7/12/01, Brian Bruns wrote:
Mark,
Is this limited to an MS-SQL server? It seems to be the date problem all
over again. I'm thinking that we will support a 'emulate little endian'
mode for big end machines that will be used with TDS 7 and for big end
machines connecting to broken versions of SQL Server. Which version is
the server that exhibits this behaviour?
This is with SQL Server 7, pre SP3. I've conditionalized my code so that once a connection is open, I query the server to get what version it is("master.dbo.xp_msver ProductVersion"). If it is less than 961, I set dbproc->tds_socket->broken_dates to 1, otherwise i set it to 0. (Since SP3 fixes the bigendian date problem.)
I'm compiling freetds into a plugin for MacSQL Monitor, a generic database tool. Because I need a lot of specific data not provided by any of the apis, the plugin is hard-coded for SQL Server only. That's all I've tested against, too.
For this patch, it might be possible to detect if it is necessary. It's been a while since I was debugging this, but I believe you'll get a completely impossible message code if the data isn't swapped properly (I think it is negative, but I'd have to check). The test could be if bigendian and if (rc < 0).
--
__________________________________________________________________________
"The best assumption to have
Mark J. Lilback is that any commonly held
<mark AT lilback.com> belief is wrong." -- Ken Olsen,
http://www.lilback.com/ founder, Digital Equip. Corp.
-
RE: BIGENDIAN
, (continued)
- RE: BIGENDIAN, Brian Bruns, 07/11/2001
- Re: BIGENDIAN, Sam Sam, 07/11/2001
- Re: BIGENDIAN, Nathan Fredrickson, 07/11/2001
- Re: BIGENDIAN, Bob Kline, 07/11/2001
- Re: BIGENDIAN, Michael Peppler, 07/11/2001
- Re: BIGENDIAN, Bob Kline, 07/11/2001
- RE: BIGENDIAN, Mark J. Lilback, 07/11/2001
- Re: BIGENDIAN, Sam Sam, 07/11/2001
- Re: BIGENDIAN, Bob Kline, 07/11/2001
- RE: BIGENDIAN, Brian Bruns, 07/12/2001
- RE: BIGENDIAN, Mark J. Lilback, 07/12/2001
Archive powered by MHonArc 2.6.24.