ResolveNumericParam problem - Mailing list pgsql-odbc

From Andreas Pflug
Subject ResolveNumericParam problem
Date
Msg-id 3EEDA699.4000205@web.de
Whole thread Raw
List pgsql-odbc
When converting the value zero, the result is wrong: it is converted to
"" or ".", depending on the precision.
The attached patch insures a zero to be added, so this converts to "0"
or "0."

Regards,
Andreas

RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/convert.c,v
retrieving revision 1.99
diff -r1.99 convert.c
2381c2381,2383
<     if (ns->scale > 0)
---
>     if (!newlen)
>         chrform[newlen++] = '0';
>     if (ns->scale > 0)

pgsql-odbc by date:

Previous
From: Andreas Pflug
Date:
Subject: Unicode/client_encoding/conversion problem
Next
From: "Luke Pond"
Date:
Subject: Help troubleshooting Access linked tables