[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetds
Subject:    Re: [freetds] SQLExecDirect() + SQLDataParam() + SQLPutData() fails
From:       Frediano Ziglio <freddy77 () gmail ! com>
Date:       2018-10-10 16:15:15
Message-ID: CAHt6W4c8+G1pi8d9teydfdKfahY2B_4Ch_7mLSVWtn+0aOsSKg () mail ! gmail ! com
[Download RAW message or body]

Il giorno mer 10 ott 2018 alle ore 11:18 Sebastien FLAESCH
<sf@4js.com> ha scritto:
>
> I have downloaded 1.00.104 from:
>
> http://www.freetds.org/files/stable/
>
> But where can I find that the fix is in a given version?
>

Only checking the version, for instance with tsql -C.
Never pop up into my mind that updating the NEWS file could be indeed helpful.

> Seb
>
> On 10/10/18 12:04 PM, Sebastien FLAESCH wrote:
> > Hello!
> >
> > Regarding this fix in Branch-1_00, where can I download sources ready
> > for compilation?
> >
> > https://github.com/FreeTDS/freetds/tree/Branch-1_00
> >
> > Once compiled and installed, how can I distinguish a 1.00 installation
> > with and without the fix?
> >
> > I see there are only major tags:
> >
> > https://github.com/FreeTDS/freetds/tags
> >
> > What is the policy?
> >
> > "Just always keep it up to date with Branch-1_00" ?
> >
> > Cheers,
> > Seb
> >
> > On 9/11/18 10:42 PM, Frediano Ziglio wrote:
> >> Il giorno sab 30 giu 2018 alle ore 13:07 Sebastien FLAESCH
> >> <sf@4js.com> ha scritto:
> >>>
> >>> Attached, the code example to reproduce:
> >>>
> >>> When using SQLPrepare() + SQLExecute():
> >>>
> >>> $ gcc -D USE_PREP_EXEC -o odbctest3.bin odbctest3.c ...
> >>>
> >>> $ ./odbctest3.bin
> >>>   >> prepare insert...
> >>>   >> bind ...
> >>>   >> execute...
> >>>   >> param data...
> >>>   >>>>> put varchar(max)
> >>>   >> param data...
> >>>
> >>>
> >>> When using SQLExecDirect():
> >>>
> >>> $ gcc -o odbctest3.bin odbctest3.c ...
> >>>
> >>> $ ./odbctest3.bin
> >>>   >> bind ...
> >>>   >> exec direct...
> >>>   >> param data...
> >>>   >>>>> put varchar(max)
> >>> Error -1 at: SQLPutData 1
> >>> Diagnostic info:
> >>>     SQL State: HY010
> >>>     SQL code : 0
> >>>     Message  : [FreeTDS][SQL Server]Function sequence error
> >>>
> >>>
> >>> What is wrong in my ODBC function sequence?
> >>>
> >>> Cheers,
> >>> Seb
> >>>
> >>>
> >>> On 06/29/2018 03:09 PM, Sebastien FLAESCH wrote:
> >>>> Hi all,
> >>>>
> >>>> Just asking before sending a little code sample to reproduce:
> >>>>
> >>>> Is there a know limitation regarding VARCHAR(MAX)/VARBINARY(MAX) parameters
> >>>> and SQLExecDirect() + SQLParamData() + SQLPutData() ?
> >>>>
> >>>> When using SQLPrepare() + SQLExecute() + SQLParamData() + SQLPutData(), I can
> >>>> send Large Objects, but with SQLExecDirect(), I get the error:
> >>>>
> >>>> [FreeTDS][SQL Server]Function sequence error
> >>>>
> >>>> When doing the first SQLPutData() ...
> >>>>
> >>>> Seb
> >>
> >> Sorry for the delay, very easy to fix. Fixed in Branch-1_00 and master.
> >> I'll integrate the test.
> >>
> >> Frediano
> >> _______________________________________________
> >> FreeTDS mailing list
> >> FreeTDS@lists.ibiblio.org
> >> https://lists.ibiblio.org/mailman/listinfo/freetds
> >>
> >
> > _______________________________________________
> > FreeTDS mailing list
> > FreeTDS@lists.ibiblio.org
> > https://lists.ibiblio.org/mailman/listinfo/freetds
> >
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS@lists.ibiblio.org
> https://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS@lists.ibiblio.org
https://lists.ibiblio.org/mailman/listinfo/freetds
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic