X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Ftable.lisp;fp=sql%2Ftable.lisp;h=d51960e3e06f617536bd167693d4ea9b3c5e4707;hp=dd5ccb95726549bb1c60adc8faf27e7e6fbdde2c;hb=23b76563b25a517ad20f29d6dc5a65c8b958a042;hpb=afc88420d03b627b214473078c3adc201de2de80 diff --git a/sql/table.lisp b/sql/table.lisp index dd5ccb9..d51960e 100644 --- a/sql/table.lisp +++ b/sql/table.lisp @@ -33,7 +33,7 @@ ;; Tables (defun create-table (name description &key (database *default-database*) - (constraints nil)) + (constraints nil) (transactions t)) "Create a table called NAME, in DATABASE which defaults to *DEFAULT-DATABASE*, containing the attributes in DESCRIPTION which is a list containing lists of attribute-name and type information pairs." @@ -44,7 +44,8 @@ a list containing lists of attribute-name and type information pairs." (stmt (make-instance 'sql-create-table :name table-name :columns description - :modifiers constraints))) + :modifiers constraints + :transactions transactions))) (execute-command stmt :database database))) (defun drop-table (name &key (if-does-not-exist :error) @@ -173,7 +174,7 @@ specification of a table to drop the index from." (unless (index-exists-p index-name :database database) (return-from drop-index))) (:error t)) - (unless (db-use-column-on-drop-index? (database-underlying-type database)) + (unless (db-type-use-column-on-drop-index? (database-underlying-type database)) (setq on nil)) (execute-command (format nil "DROP INDEX ~A~A" index-name (if (null on) ""