r9402: Reworked docstrings.
[clsql.git] / sql / table.lisp
index d2a615b8d49c8c46f853255b2b10f8ea5f02c44b..1b28c4ff10db3b6b37bf181ee09b702576978b3e 100644 (file)
@@ -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*))
@@ -249,7 +252,7 @@ specifications in table have changed."
                    ((null action)
                     (setf (gethash k attribute-cache) (list nil nil)))
                    ((eq t action)
-                    (setf (gethash k attribute-cache) (list t (second value))))))
+                    (setf (gethash k attribute-cache) (list t (second v))))))
                attribute-cache))
       ((eq table :default)
        (maphash (lambda (k v)
@@ -260,7 +263,7 @@ specifications in table have changed."
                      ((null action)
                       (setf (gethash k attribute-cache) (list nil nil)))
                      ((eq t action)
-                      (setf (gethash k attribute-cache) (list t (second value)))))))
+                      (setf (gethash k attribute-cache) (list t (second v)))))))
                attribute-cache))))
   (values))