X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Ffddl.lisp;h=51f8f05d5d5954b9a174d0bcc7bbd362c39fee67;hp=c8d4d1f7b988556929cfd56e892ae86d3ce0e394;hb=26533896461bb09509b5df14c767afe85dce324d;hpb=cb683851a0af33e88b7c4995435dc0cf226f6cba diff --git a/sql/fddl.lisp b/sql/fddl.lisp index c8d4d1f..51f8f05 100644 --- a/sql/fddl.lisp +++ b/sql/fddl.lisp @@ -79,7 +79,8 @@ supports transactions." (execute-command stmt :database database))) (defun drop-table (name &key (if-does-not-exist :error) - (database *default-database*)) + (database *default-database*) + (owner nil)) "Drops the table called NAME from DATABASE which defaults to *DEFAULT-DATABASE*. If the table does not exist and IF-DOES-NOT-EXIST is :ignore then DROP-TABLE returns nil whereas @@ -87,7 +88,8 @@ an error is signalled if IF-DOES-NOT-EXIST is :error." (let ((table-name (database-identifier name database))) (ecase if-does-not-exist (:ignore - (unless (table-exists-p table-name :database database) + (unless (table-exists-p table-name :database database + :owner owner) (return-from drop-table nil))) (:error t))