r1656: More field type coding
[clsql.git] / interfaces / aodbc / aodbc-sql.cl
index e3eedb54a565b1f784e1c00b77c4bf43e2314fdb..e6244d18b3170f9447887b2b658b78157c5c8461 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: aodbc-sql.cl,v 1.3 2002/03/24 18:08:27 kevin Exp $
+;;;; $Id: aodbc-sql.cl,v 1.5 2002/03/25 06:07:06 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -62,7 +62,8 @@
 
 (defmethod database-query (query-expression (database aodbc-database) field-types) 
   (handler-case
-      (dbi:sql query-expression :db (database-aodbc-conn database))
+      (dbi:sql query-expression :db (database-aodbc-conn database)
+              :types field-types)
     (error ()
       (error 'clsql-sql-error
             :database database
                   :row-count nil
                   :column-names t
                   :query t
+                  :types field-types
                   )
        (values
-        (make-aodbc-result-set :query query :full-set full-set)
+        (make-aodbc-result-set :query query :full-set full-set 
+                               :field-types field-types)
         (length column-names)
         nil ;; not able to return number of rows with aodbc
         ))