r9977: 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 7 Sep 2004 20:45:43 +0000 (20:45 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 7 Sep 2004 20:45:43 +0000 (20:45 +0000)
        * Version 3.0.3 Release
        * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
        from Tagore Smith to call force-output after sending authentication
        * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
        * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
        to a database of that type so that functions that indicate capabilities of
        database are available.

ChangeLog
db-odbc/odbc-api.lisp
db-odbc/odbc-constants.lisp
db-odbc/odbc-ff-interface.lisp
db-odbc/odbc-sql.lisp
db-postgresql-socket/postgresql-socket-api.lisp
debian/changelog

index e32893b757a20d72ec361b7182ec2b45239571a6..fa9a562dd93654df862969b4cc345ffb03b907cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
+       * Version 3.0.3 Release
+       * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
+       from Tagore Smith to call force-output after sending authentication
+       * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
+       * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
+       to a database of that type so that functions that indicate capabilities of
+       database are available.
+       
 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
        * db-odbc/odbc-api.lisp: More conversions to ODBC v3
        
index 4095f6cfeef3d4872add1725fd31daa8cd58f587..aa5bbbc822c49b5a416c37a774cda83d18e36c72 100644 (file)
@@ -249,11 +249,11 @@ as possible second argument) to the desired representation of date/time/timestam
 
 (defun %new-statement-handle (hdbc)
   (let ((statement-handle
-        (with-foreign-object (hstmt-ptr 'sql-handle)
+        (with-foreign-object (phstmt 'sql-handle)
           (with-error-handling 
               (:hdbc hdbc)
-            (SQLAllocStmt hdbc hstmt-ptr
-            (deref-pointer hstmt-ptr 'sql-handle)))))
+            (SQLAllocHandle $SQL_HANDLE_STMT hdbc phstmt
+            (deref-pointer phstmt 'sql-handle)))))
     (if (uffi:null-pointer-p statement-handle)
        (error 'clsql:sql-database-error :message "Received null statement handle.")
        statement-handle)))
index e6cc0bdf6f56ed34dbaaab018cafd95ef35a6828..0315e444e3a38627b2cd92fb3c8414a1d1b96a0d 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: odbc -*-
+ ;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: odbc -*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
index 7b780233db545f6a9abbe95054e7cd25fa00b43a..d26648c744fa6737fb0e7be8e5d1d5918ab32bd9 100644 (file)
@@ -38,6 +38,7 @@
   :module "odbc"
   :returning :short)              ; RETCODE_SQL_API
 
+;; deprecated
 (def-function "SQLAllocConnect"
     ((henv sql-handle)          ; HENV        henv
      (*phdbc sql-handle-ptr)    ; HDBC   FAR *phdbc
@@ -75,6 +76,7 @@
   :module "odbc"
   :returning :short)              ; RETCODE_SQL_API
   
+;; deprecated
 (def-function "SQLAllocStmt"
     ((hdbc sql-handle)          ; HDBC        hdbc
      (*phstmt sql-handle-ptr)   ; HSTMT  FAR *phstmt
index 31d8a4ecd5692cba9324f68c395a6a978fb92715..c28e937860d50e6d3362a108d92da1282114e292 100644 (file)
          (cond 
           ((or (search "postgresql" server-name :test #'char-equal)
                (search "postgresql" dbms-name :test #'char-equal))
+           (unless (find-package 'clsql-postgresql)
+             (ignore-errors (asdf:operate 'asdf:load-op 'clsql-postgresql-socket)))
            :postgresql)
           ((or (search "mysql" server-name :test #'char-equal)
                (search "mysql" dbms-name :test #'char-equal))
+           (unless (find-package 'clsql-mysql)
+             ;; ignore errors on platforms where the shared libraries are not available
+             (ignore-errors (asdf:operate 'asdf:load-op 'clsql-mysql)))
            :mysql)
           ((or (search "oracle" server-name :test #'char-equal)
                (search "oracle" dbms-name :test #'char-equal))
index a6cc666c0805358bb098137f79785b3e8f71ecee..ba0cd221bbdc547c920d174bb023c22cdea58b3e 100644 (file)
@@ -458,14 +458,16 @@ connection, if it is still open."
                    (3
                     (send-unencrypted-password-message
                      socket
-                     (postgresql-connection-password connection)))
+                     (postgresql-connection-password connection))
+                      (force-output socket))
                    (4
                     (let ((salt (make-string 2)))
                       (read-socket-sequence salt socket)
                       (send-encrypted-password-message
                        socket
                        (crypt-password
-                        (postgresql-connection-password connection) salt))))
+                        (postgresql-connection-password connection) salt)))
+                     (force-output socket))
                    (5
                     (let ((salt (make-string 4)))
                       (read-socket-sequence salt socket)
@@ -474,7 +476,8 @@ connection, if it is still open."
                              (pwd (encrypt-md5 pwd2 salt)))
                         (send-encrypted-password-message
                          socket
-                         (concatenate 'string "md5" pwd)))))
+                         (concatenate 'string "md5" pwd))))
+                     (force-output socket))
                    (t
                     (error 'postgresql-login-error
                            :connection connection
index 285de5ee10ec1da7269fabc9a4dee49923f181bf..ac6919b729b55171be5e3858fdfa1878531d4d50 100644 (file)
@@ -1,3 +1,9 @@
+cl-sql (3.0.3-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Tue,  7 Sep 2004 14:45:27 -0600
+
 cl-sql (3.0.2-1) unstable; urgency=low
 
   * New upstream