X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-mysql%2Fmysql-sql.lisp;fp=db-mysql%2Fmysql-sql.lisp;h=1f54d44c430e6f261a6f7a7e509c470e035b0f79;hb=eb6238bfcd8e0359c813c24626cc0b435c7a04bf;hp=95ec0eceb32f910dabf5c2cc96d6d6621de38abb;hpb=df05ba2eb9a61e72e8dfbce2df7c43d4ce38169f;p=clsql.git diff --git a/db-mysql/mysql-sql.lisp b/db-mysql/mysql-sql.lisp index 95ec0ec..1f54d44 100644 --- a/db-mysql/mysql-sql.lisp +++ b/db-mysql/mysql-sql.lisp @@ -245,9 +245,11 @@ result-types field-names) (declare (optimize (speed 3))) (let ((mysql-ptr (database-mysql-ptr database)) - (results nil) ;; all the results and column-names in reverse-order - res-ptr (num-fields 0)) - (declare (type mysql-mysql-ptr-def mysql-ptr res-ptr) + (results nil) ;; all the results and column-names in reverse-order + (res-ptr nil) + (num-fields 0)) + (declare (type mysql-mysql-ptr-def mysql-ptr) + (type (or null mysql-mysql-res-ptr-def) res-ptr) (fixnum num-fields)) (when (database-execute-command query-expression database) (labels