Handle sql decimal type identically to sql numeric type--read into a double.
[clsql.git] / db-odbc / odbc-dbi.lisp
index a3eb50b1817c699dd8343c53e22d205962646a45..90cea24f1e8049c863ed0e883c6033322ea1f4cb 100644 (file)
@@ -474,7 +474,7 @@ This makes the functions db-execute-command and db-query thread safe."
                  (#.odbc::$SQL_C_TYPE_TIMESTAMP :time)
                  (#.odbc::$SQL_C_CHAR ;; TODO: Read this as rational instead of double
                    (or (case (aref column-sql-types i)
-                         (#.odbc::$SQL_NUMERIC :double))
+                         ((#.odbc::$SQL_NUMERIC #.odbc::$SQL_DECIMAL) :double))
                        T))
 
                  (t t)))