[PATCH] Status byte, endianess, etc

Mark Schaal mark at champ.tstonramp.com
Tue Jul 4 19:45:37 EDT 2000


> 
> This is the patch I came up with getting freeTDS somewhat working on a
> Solaris box talking to an MS SQL 7.0 box. I ended up having to use
> DBD-ODBC to get what I needed but I wanted to make sure I contributed
> back what I got. The parts of the patch:
> - Fixes status field in DONE packet response to be 2 bytes instead of 1
> - Clean-up get_smallint and get_int... mostly just efficiency but
> get_smallint was confusing
> - Integrates the stripping of the extra NULL fix on SYBCHAR fields for
> 0.50
> - Makes TDS_INT and TDS_UINT be base off int32_t and uint32_t
> 
> Brian Macy


Thanks!

I've added versions of the first two fixes to the CVS. 

I don't want to touch null stripping issues so hopefully Brian
will check that out. <*shame*> I've always tuned out of those
discussions as long as it works for me.

I'm not ready to tackle the int32_t patch issue b/c I don't
myself know how widely spread int32_t is.  Unless someone can
verify that int32_t is everywhere, I believe a better fix would
also mean having autoconf create some AC_CHECK_SIZEOF() tests.
That doesn't sound too difficult, so I'll try to work on it
this week.

Mark
-- 
Mark J. Schaal					Phone:      (909) 620-7724
TST On Ramp					Fax:	    (909) 620-8174
System Administrator				E-Mail: mark at tstonramp.com



More information about the FreeTDS mailing list