Skip to Content.
Sympa Menu

freetds - Re: [freetds] unittest/setnull.c passes

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] unittest/setnull.c passes
  • Date: Tue, 11 Dec 2007 15:44:15 +0100


>
> unittest/null.c and unittest/null2.c fail on Sybase servers because
> there's no NTEXT or NVARCHAR(MAX).
>

No, these kind of errors are ignored. However the test isn't able to
distinguish if server return differently empty strings and NULLs...
Sybase cannot store empty string so it returns empty strings as ' '.
Perhaps a select cast('' as varchar(2)) query could fix the problem...

> The unit tests could call DBTDS() to decide if the server supports a
> feature, instead of issuing misleading errors.
>
> But overall it looks pretty good from here.
>

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page