X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-postgresql-socket3%2Fsql.lisp;h=01816379e71a68da3f7d82c0714bad974b756a19;hp=f8573a200b7e7432514900dc51eb22a5aec7743f;hb=4f756ab532ff033a34597a1c8030379e252952ca;hpb=dc107d34212597ed1272cfa21138d384e71b00d2 diff --git a/db-postgresql-socket3/sql.lisp b/db-postgresql-socket3/sql.lisp index f8573a2..0181637 100644 --- a/db-postgresql-socket3/sql.lisp +++ b/db-postgresql-socket3/sql.lisp @@ -203,7 +203,11 @@ (defmethod query ((obj command-object) &key (database *default-database*) (result-types :auto) (flatp nil) (field-names t)) - (clsql-sys::record-sql-command (expression obj) database) + (clsql-sys::record-sql-command + (format nil "~&~A~&{Params: ~{~A~^, ~}}" + (expression obj) + (parameters obj)) + database) (multiple-value-bind (rows names) (database-query obj database result-types field-names) (let ((result (if (and flatp (= 1 (length (car rows)))) @@ -321,12 +325,3 @@ (clsql-sys:initialize-database-type :database-type :postgresql-socket3)) -;; Type munging functions - -(defmethod read-sql-value (val (type (eql 'boolean)) (database postgresql-socket3-database) db-type) - (declare (ignore database db-type)) - val) - -(defmethod read-sql-value (val (type (eql 'generalized-boolean)) (database postgresql-socket3-database) db-type) - (declare (ignore database db-type)) - val)