Skip to Content.
Sympa Menu

freetds - Re: [freetds] suspected corruption

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] suspected corruption
  • Date: Thu, 06 Dec 2007 20:41:03 +0100


Il giorno mer, 05/12/2007 alle 11.39 -0500, James K. Lowden ha scritto:
> ZIGLIO, Frediano, VF-IT wrote:
> >
> > This morning I wrote this patch... still not that much...
>
> Um, I'm not that fond of the change to the switch. You replaced my NULL
> bindval flag with two more (null_term and padding), Then you set the flags
> and goto the memset operation. All so there's only one call to memset(3)?
> I don't see how that's better.
>
> There are some other parts of your patch I like, particularly not freeing
> the old bindval until pval is ready.
>

Is it possible to set null to something different from empty (for
binary/char and so on). For instance if we want 'foo' returned for NULL
chars what does library do ?? Probably it start string with 'foo' and
pad with space. And if client specify 0/-1 as varlen? Does library
return empty string or unpadded 'foo'? And what happen if we say we want
'foo '? Does library r-trim string?

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page