X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-odbc%2Fodbc-dbi.lisp;h=0b88ee20695267bc10612a2928595d29d7fdb57b;hb=fa0cd19178ce76b6b7e7292bf4ce012303c95c1f;hp=caa549e94c72f6db9b6771a071c0c48eff09c461;hpb=2135bfa98887e609e060f30c0b04130075089788;p=clsql.git diff --git a/db-odbc/odbc-dbi.lisp b/db-odbc/odbc-dbi.lisp index caa549e..0b88ee2 100644 --- a/db-odbc/odbc-dbi.lisp +++ b/db-odbc/odbc-dbi.lisp @@ -104,7 +104,7 @@ :accessor data-ptrs) (column-out-len-ptrs :initform (make-array 0 :adjustable t :fill-pointer t) :accessor column-out-len-ptrs) - (column-precisions :initform (make-array 0 :element-type 'fixnum :adjustable t :fill-pointer t) + (column-precisions :initform (make-array 0 :element-type 'integer :adjustable t :fill-pointer t) :accessor column-precisions) (column-scales :initform (make-array 0 :element-type 'fixnum :adjustable t :fill-pointer t) :accessor column-scales) @@ -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)