r10801: 4 Nov 2005 Kevin Rosenberg <kevin@rosenberg.net>
[clsql.git] / db-odbc / odbc-api.lisp
index eb68f205b42c32ce248b6f1a217c389a992f75ad..0dcefa4090491a558299e624ca9586389fd7d2d7 100644 (file)
@@ -164,7 +164,7 @@ as possible second argument) to the desired representation of date/time/timestam
 
 (defun %new-db-connection-handle (henv)
   (with-foreign-object (phdbc 'sql-handle)
-    (setf (deref-pointer phdbc sql-handle) +null-handle-ptr+)
+    (setf (deref-pointer phdbc 'sql-handle) +null-handle-ptr+)
     (with-error-handling
       (:henv henv)
       (SQLAllocHandle $SQL_HANDLE_DBC henv phdbc)