projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r9456: relax type for server-version
[clsql.git]
/
sql
/
classes.lisp
diff --git
a/sql/classes.lisp
b/sql/classes.lisp
index 3bde105b239238297f8413fd1c38e1670ba97dd9..80d735c1ee07eed15b4a6d13f20d35116382477f 100644
(file)
--- a/
sql/classes.lisp
+++ b/
sql/classes.lisp
@@
-100,8
+100,7
@@
(call-next-method)))))
(defmethod output-sql ((expr sql-ident) database)
(call-next-method)))))
(defmethod output-sql ((expr sql-ident) database)
- (with-slots (name)
- expr
+ (with-slots (name) expr
(write-string
(convert-to-db-default-case
(etypecase name
(write-string
(convert-to-db-default-case
(etypecase name
@@
-662,7
+661,11
@@
uninclusive, and the args from that keyword to the end."
(with-slots (into attributes values query)
ins
(write-string "INSERT INTO " *sql-stream*)
(with-slots (into attributes values query)
ins
(write-string "INSERT INTO " *sql-stream*)
- (output-sql into database)
+ (output-sql
+ (typecase into
+ (string (sql-expression :attribute into))
+ (t into))
+ database)
(when attributes
(write-char #\Space *sql-stream*)
(output-sql attributes database))
(when attributes
(write-char #\Space *sql-stream*)
(output-sql attributes database))