r9430: correctly obtain server and client versions of oracle.
[clsql.git] / sql / table.lisp
index 67b474d2a2f1c65a0e42ff982bd7351c7a5380b6..a49ed2adb6d405d0b1e4c0c868f0bd0b57f6a3cf 100644 (file)
@@ -72,9 +72,9 @@ an error is signalled if IF-DOES-NOT-EXIST is :error."
     (let ((expr (concatenate 'string "DROP TABLE " table-name)))
       (when (and (find-package 'clsql-oracle)
                 (eq :oracle (database-type database))
-                (eql 9 (slot-value database 
-                                   (intern (symbol-name '#:major-version-number)
-                                           (symbol-name '#:clsql-oracle)))))
+                (eql 10 (slot-value database 
+                                    (intern (symbol-name '#:major-server-version)
+                                            (symbol-name '#:clsql-oracle)))))
        (setq expr (concatenate 'string expr " PURGE")))
 
       (execute-command expr :database database))))