made odbc read (from c) decimals and numerics as doubles instead of strings, in prepa...
[clsql.git] / db-odbc / odbc-dbi.lisp
index 86929d7806ccf502df78415fb84417fcdb99728e..0b88ee20695267bc10612a2928595d29d7fdb57b 100644 (file)
@@ -465,6 +465,10 @@ This makes the functions db-execute-command and db-query thread safe."
                 (#.odbc::$SQL_C_SSHORT :short)
                 (#.odbc::$SQL_C_STINYINT :short)
                 (#.odbc::$SQL_C_SBIGINT #.odbc::$ODBC-BIG-TYPE)
+                (#.odbc::$SQL_C_CHAR
+                   (or (case (aref column-sql-types i)
+                         (#.odbc::$SQL_NUMERIC :double))
+                       T))
                 (t t)))
              (t t)))))
   query)