projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9114: fixes for list-indexes
[clsql.git]
/
sql
/
sql.lisp
diff --git
a/sql/sql.lisp
b/sql/sql.lisp
index 28d5a922b857a4f9dd9387f497ddcc02d5a7c2f1..8227fea896f9b611cfe3fbf377855fff3cbdcc0c 100644
(file)
--- a/
sql/sql.lisp
+++ b/
sql/sql.lisp
@@
-38,11
+38,11
@@
(clsql-base-sys::signal-no-database-error database))
(unless (is-database-open database)
(database-reconnect database))
(clsql-base-sys::signal-no-database-error database))
(unless (is-database-open database)
(database-reconnect database))
- (dolist (table (list-tables database))
+ (dolist (table (list-tables
:database
database))
(drop-table table :database database))
(drop-table table :database database))
- (dolist (index (list-indexes database))
+ (dolist (index (list-indexes
:database
database))
(drop-index index :database database))
(drop-index index :database database))
- (dolist (seq (list-sequences database))
+ (dolist (seq (list-sequences
:database
database))
(drop-sequence seq :database database)))
(defun print-query (query-exp &key titles (formats t) (sizes t) (stream t)
(drop-sequence seq :database database)))
(defun print-query (query-exp &key titles (formats t) (sizes t) (stream t)
@@
-217,6
+217,10
@@
condition is true."
(declare (ignore database))
(db-timestring self))
(declare (ignore database))
(db-timestring self))
+(defmethod database-output-sql ((self duration) database)
+ (declare (ignore database))
+ (format nil "'~a'" (duration-timestring self)))
+
(defmethod database-output-sql (thing database)
(if (or (null thing)
(eq 'null thing))
(defmethod database-output-sql (thing database)
(if (or (null thing)
(eq 'null thing))