X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fsql.lisp;h=c80723b24dd8a5b7b1d2622c1e0b5fbee258191e;hb=ddae27a4c55b8a055afc167bd7d65c766cc6c78e;hp=0a0d2f3fef16dc5c4663f6a1c3e2d51d2ff2cd1d;hpb=8c6c643e3debe875bd14408cc3129d8148dfd125;p=clsql.git diff --git a/sql/sql.lisp b/sql/sql.lisp index 0a0d2f3..c80723b 100644 --- a/sql/sql.lisp +++ b/sql/sql.lisp @@ -48,6 +48,8 @@ (signal-no-database-error database)) (unless (is-database-open database) (database-reconnect database)) + (when (eq :oracle (database-type database)) + (ignore-errors (execute-command "PURGE RECYCLEBIN" :database database))) (when (db-type-has-views? (database-underlying-type database)) (dolist (view (list-views :database database)) (drop-view view :database database))) @@ -243,10 +245,11 @@ condition is true." (if (or (null thing) (eq 'null thing)) "NULL" - (error 'clsql-simple-error - :format-control - "No type conversion to SQL for ~A is defined for DB ~A." - :format-arguments (list (type-of thing) (type-of database))))) + (error 'sql-user-error + :message + (format nil + "No type conversion to SQL for ~A is defined for DB ~A." + (type-of thing) (type-of database))))) (defmethod output-sql-hash-key ((arg vector) database)