Menu

#58 dbwillconvert() returns wrong value (255 instead of TRUE)

open
nobody
dblib (11)
5
2013-06-06
2012-08-09
Mikhail T.
No

Sybase's manual states, dbwillconvert() returns TRUE, when a conversion can/should happen. TRUE is defined -- both in Sybase's own code and in FreeTDS' headers as 1, but dbwillconvert() returns 255:

(gdb) p dbwillconvert(SYBCHAR, SYBCHAR)
$3 = 255

This breaks valid code, which compares the result of dbwillconvert() with TRUE -- and works properly with Sybase's own client libraries.

Discussion

  • Mikhail T.

    Mikhail T. - 2012-08-09
    • summary: dbwillconvert() returns wrong value --> error handler
     
  • Mikhail T.

    Mikhail T. - 2012-08-09
    • summary: error handler --> dbwillconvert() returns wrong value (255 instead of TRUE)
     
  • Mikhail T.

    Mikhail T. - 2012-08-09
    • labels: --> dblib
     
  • Frediano Ziglio

    Frediano Ziglio - 2013-06-06

    Fixed

     

Log in to post a comment.

MongoDB Logo MongoDB