Fixup ODBC :connection-string codepath.
[clsql.git] / db-odbc / odbc-api.lisp
index 9ebdb3e6e506475104869f55624219851192b0e8..b20a48aba469295b11880ca8326fec7c196d9d29 100644 (file)
@@ -226,7 +226,8 @@ May be locally bound to something else if a certain type is necessary.")
        (with-error-handling
            (:hdbc hdbc)
            (SQLDriverConnect hdbc
-                             window-handle
+                             (or window-handle
+                                 +null-handle-ptr+)
                              connection-ptr $SQL_NTS
                              completed-connection-string-ptr $SQL_MAX_CONN_OUT
                              completed-connection-length