hdbc / hdbc-odbc

ODBC driver for HDBC
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

Support marshalling of other types than strings #45

Open torgeirsh opened 2 years ago

torgeirsh commented 2 years ago

The bindSqlValue function marshals all non-string values as strings, which results in type errors from the database server when e.g. passing an integer as a positional argument:

Implicit conversion from datatype 'CHAR' to 'INT' is not allowed.

A comment in the code already notes that the current marshalling is a hack.