X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-db2%2Fdb2-sql.lisp;h=62247567debdf86e77022dd9de309e264d84323c;hb=e4778554b1dc8a130f9b189d760730ce5d76ced4;hp=16aa2165cf3613808749948aa2b7440843f2b237;hpb=44cd3f817f6f59ffe495db4cf2b9ea4637a57f75;p=clsql.git diff --git a/db-db2/db2-sql.lisp b/db-db2/db2-sql.lisp index 16aa216..6224756 100644 --- a/db-db2/db2-sql.lisp +++ b/db-db2/db2-sql.lisp @@ -55,8 +55,8 @@ `(the handle-type (uffi:deref-pointer (the handle-ptr-type ,foreign-object) cli-handle))) (defun db2-connect (db server user password) - (let ((henv (uffi:allocate-foreign-object cli-handle)) - (hdbc (uffi:allocate-foreign-object cli-handle))) + (let ((henv (uffi:allocate-foreign-object 'cli-handle)) + (hdbc (uffi:allocate-foreign-object 'cli-handle))) (sql-alloc-handle SQL_HANDLE_ENV SQL_NULL_HANDLE henv) (setf (slot-value db 'henv) henv) (setf (slot-value db 'hdbc) hdbc)