Skip to Content.
Sympa Menu

freetds - Re: t0009 test failed.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Craig Spannring <cts AT internetcds.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: t0009 test failed.
  • Date: Sun, 23 Apr 2000 23:16:39 -0600 (MDT)


Tom Coleman writes:
>
> The code is wrong.

The code works fine with Microsoft DBLIB and SQLServer 7.0, so whether
or not the code is wrong, something in the FreeTDS DBLIB isn't working
the same way as the MS code.

At some point in the past the FreeTDS code and the Microsoft code both
produced the same (correct) result on t0009.


>
> "create table" creates a "varchar" (variable length) field.
>
> The "strcmp" functions test for fixed length strings.
>
> The test will work if you change the "create table" statement to use
> a "char" field instead of a "varchar".


The tests were written to demonstrate bugs that exist or existed in
the FreeTDS libraries. If the test says 'failed', it doesn't mean you
should "fix" the test, it means you should fix the library.



--
=======================================================================
Life is short. | Craig Spannring
Bike hard, ski fast. | cts AT internetcds.com
--------------------------------+------------------------------------
Any sufficiently horrible technology is indistinguishable from Perl.
=======================================================================




Archive powered by MHonArc 2.6.24.

Top of Page