X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Ffdml.lisp;h=bd8d6d36012e6183a8d6e0e96f0608f069848523;hb=30186614582039bdc3d3f86bc5165ef300c5d3e0;hp=b9a1153268e87ab2bb6f7691212eb450f9abf406;hpb=79d8426bb78f25255a2cb2550ed2d41174b35b53;p=clsql.git diff --git a/sql/fdml.lisp b/sql/fdml.lisp index b9a1153..bd8d6d3 100644 --- a/sql/fdml.lisp +++ b/sql/fdml.lisp @@ -135,7 +135,7 @@ columns." (subquery nil)) (unless into (error 'sql-user-error :message ":into keyword not supplied")) - (let ((insert (make-instance 'sql-insert :into into))) + (let ((insert (make-instance 'sql-insert :into (database-identifier into nil)))) (with-slots (attributes values query) insert @@ -163,7 +163,7 @@ columns." "Deletes records satisfying the SQL expression WHERE from the table specified by FROM in DATABASE specifies a database which defaults to *DEFAULT-DATABASE*." - (let ((stmt (make-instance 'sql-delete :from from :where where))) + (let ((stmt (make-instance 'sql-delete :from (database-identifier from database) :where where))) (execute-command stmt :database database))) (defun update-records (table &key (attributes nil) @@ -184,7 +184,7 @@ are nil and AV-PAIRS is an alist of (attribute value) pairs." (when av-pairs (setf attributes (mapcar #'car av-pairs) values (mapcar #'cadr av-pairs))) - (let ((stmt (make-instance 'sql-update :table table + (let ((stmt (make-instance 'sql-update :table (database-identifier table database) :attributes attributes :values values :where where)))