r9209: read tinyint as integer for odbc, handle boolean reading/writing fields
[clsql.git] / db-odbc / odbc-dbi.lisp
index 4a6107d93c9235f6f4eeb035cd0ac01d4e071d4d..0de8eddf4bd7bd58f27f845b664aeb6e9abbfea0 100644 (file)
@@ -454,10 +454,11 @@ This makes the functions db-execute-command and db-query thread safe."
              (#.odbc::$SQL_C_DOUBLE :double)
              (#.odbc::$SQL_C_FLOAT :float)
              (#.odbc::$SQL_C_SSHORT :short)
+             (#.odbc::$SQL_C_STINYINT :short)
              (#.odbc::$SQL_BIGINT :short)
              (t t))))
          (t
-         t)))))
+          t)))))
   query)
 
 (defun db-close-query (query &key drop-p)