Menu

"OCI_GetString" works wrong in Ocilib v3.12.0

2013-02-08
2013-02-09
  • Josemi Antelo

    Josemi Antelo - 2013-02-08

    Hello Vincent

    I just tested the new versión of Ocilib 3.12 and I found an error in OCI_GetString. I've got a table with columns defined like NUMBER(4). When I try to get values from these columns OCI_GetString return me values like "4." (with point at the end). I tested the versión 3.10 and it Works fine.

    Yours sincerely
    Josemi

     
    • Vincent Rogier

      Vincent Rogier - 2013-02-09

      hi,

      You are right. Some code to remove trailing comma and dot in number to string conversions has been removed by mistake in 3.11.0. I will make a 3.12.1 release asap.
      Sorry about that....

       

      Last edit: Vincent Rogier 2013-02-25
      • Vincent Rogier

        Vincent Rogier - 2013-02-09

        Hi,

        The bug only occurs when using OCI_CHARSET_WIDE or OCI_CHARSET_MIXED builds
        of OCILIB.

        in version 3.10.00, the removal of trailing dots and commas was not removed
        but failed as the number of character of the converted string was not
        correctly computed when using unicode user strings...

        number.c, line 414 :

        out_value_size = osize1;

        should be replaced by

        out_value_size = (osize1 / (int) sizeof(dtext));

         

        Last edit: Vincent Rogier 2013-02-25