X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Ftransaction.lisp;h=286839be9d3bb4d20d5e480be0393787d666ece5;hp=6ea37b6b6b4bc93c065072f30ca0c4de7983726d;hb=e622ee6f4bf2b9fe81af59d566e651c983a4833b;hpb=99df5f6ad5b46a65d5698ebb85f95fa71f861da5 diff --git a/sql/transaction.lisp b/sql/transaction.lisp index 6ea37b6..286839b 100644 --- a/sql/transaction.lisp +++ b/sql/transaction.lisp @@ -47,7 +47,7 @@ (when (zerop (decf (transaction-level database))) (execute-command "COMMIT" :database database) (map nil #'funcall (commit-hooks (transaction database)))) - (warn 'clsql-simple-warning + (warn 'sql-warning :format-control "Cannot commit transaction against ~A because there is no transaction in progress." :format-arguments (list database)))) @@ -57,7 +57,7 @@ (unwind-protect (execute-command "ROLLBACK" :database database) (map nil #'funcall (rollback-hooks (transaction database))))) - (warn 'clsql-simple-warning + (warn 'sql-warning :format-control "Cannot abort transaction against ~A because there is no transaction in progress." :format-arguments (list database))))