Skip to Content.
Sympa Menu

freetds - Re: ints don't work, trailing null on strings

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: James Ponder <james AT squish.net>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: ints don't work, trailing null on strings
  • Date: Wed, 18 Oct 2000 15:03:25 +0100


On Wed, Oct 18, 2000 at 02:30:46PM +0100, James Ponder wrote:
> I just tried DBD::FreeTDS instead of DBD::Sybase and it doesn't have
> this problem! Does the former use a different API to the latter?

Another point:

Turns out the implementation of DBD::FreeTDS is such that it stops when
it gets to a null character anyway, so it wouldn't exhibit this problem
anyway, if it were something wrong with FreeTDS itself. I note that
DBD::FreeTDS is able to get integers though, but I suppose this depends
on whether there is another API to use whether or not this indicates a
bug in FreeTDS or DBD::Sybase.

DBD::FreeTDS seems to have it's own problems though - it fails to
notice the difference between a CHAR and VARCHAR and all CHARS are
padded with spaces :-(

Who knew this would be so difficult.


Best wishes, James
--
James Ponder; www.squish.net




Archive powered by MHonArc 2.6.24.

Top of Page