r9402: Reworked docstrings.
[clsql.git] / sql / table.lisp
index ad8c55a5ef699e363015f2e4d928fbdf4f214fb8..1b28c4ff10db3b6b37bf181ee09b702576978b3e 100644 (file)
@@ -15,7 +15,7 @@
 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
 ;;;; *************************************************************************
 
-(in-package #:clsql)
+(in-package #:clsql-sys)
 
 
 ;; Utilities
@@ -61,7 +61,10 @@ if IF-DOES-NOT-EXIST is :error."
          (return-from drop-table nil)))
       (:error
        t))
-    (let ((expr (concatenate 'string "DROP TABLE " table-name)))
+    (let ((expr (concatenate 'string "DROP TABLE " table-name
+                            (if (eq :oracle (database-type database))
+                                " PURGE"
+                              ""))))
       (execute-command expr :database database))))
 
 (defun list-tables (&key (owner nil) (database *default-database*))