[Pkg-tcltk-devel] tclodbc off-by-one error

Christian Werner Christian.Werner at t-online.de
Wed Oct 4 20:52:14 BST 2023


On 10/04/2023 01:40 PM, Sergei Golovan wrote:
> Hi, Massimo, Christian,
>
> As far as I can see in the code, the parameter index is calculated as
> i+1 from the loop variable i:
>
> for (i = 0; i < nParams; ++i) {
>     rc = SQLDescribeParam(sdata->hStmt, i+1,
> ...
>
> Can you be more specific in which query fails and how?

If there's really an i+1 everything is fine and please ignore my noise.
Most likely my fault since I've looked into my private and very old branch
of the tclodbc sources.

BTW: it can hit any query since the data type mapping goes off-by-one.

BR,
Christian




More information about the Pkg-tcltk-devel mailing list