Skip to Content.
Sympa Menu

freetds - t0009 test failed.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Tom Coleman" <tcoleman AT autowares.com>
  • To: freetds
  • Subject: t0009 test failed.
  • Date: Fri, 14 Apr 2000 16:44:42



The code is wrong.

"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".

... "create table dblib0009 (i int not null, s char(10) not null)"...

Or you can leave the varchar and delete the trailing spaces from
the strcmp() functions:

...strcmp("abcdef", teststr)...
...strcmp("abc", teststr)...





Archive powered by MHonArc 2.6.24.

Top of Page