Re: Null values in result record are overwrittenwithprevious non-null data when using a prepared query morethan once

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2009/6/18 Buurman, H.A. (Herbert) <[email protected]>
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]]On Behalf Of Frediano Ziglio
> > Sent: Thursday, 18 June, 2009 15:11
> > To: FreeTDS Development Group
> > Subject: Re: [freetds] Null values in result record are
> > overwrittenwithprevious non-null data when using a prepared query
> > morethan once
> >
> >
> > Could you try with a sequence growing and shrinking like
> >
> > Value => 1, Identifier => 1,
> > Value => 23, Identifier => 2,
> > Value => 456, Identifier => 3,
> > Value => 78, Identifier => 4,
> > Value => 9, Identifier => 5,
> >
>
> With only modifying the @Identifiers-line to
> my @Identifiers = ('1', '2', '3', '4', '5');
> and filling the table with the above mentioned data, the output
> is as follows:
>
> Value => 1, Identifier => 1,
> Value => 23, Identifier => 2,
> Value => 456, Identifier => 3,
> Value => 78, Identifier => 4,
> Value => 9, Identifier => 5,
>
> Which looks just fine. Guess which value I then Null'ed? :-)
>
> Value => 1, Identifier => 1,
> Value => 23, Identifier => 2,
> Value => 456, Identifier => 3,
> Value => 456, Identifier => 4,
> Value => 9, Identifier => 5,
>
> Kind regards,
> H. Buurman
>

fool of me !!
Could you run your script enabling FreeTDS dumps and send the dump??
Something like

TDSDUMP=freetds.log perl myscript.pl

and send freetds.log

freddy77
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.