X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fgeneric-postgresql.lisp;h=5498ee2d0114f43cd2a5a77044da7df4b3cba972;hb=53bf64089da7f091d748f46eb95ebeb39d990dd9;hp=70a8e9fb9dc8aa5887ad2f81e07faa26f83efefd;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/sql/generic-postgresql.lisp b/sql/generic-postgresql.lisp index 70a8e9f..5498ee2 100644 --- a/sql/generic-postgresql.lisp +++ b/sql/generic-postgresql.lisp @@ -21,6 +21,21 @@ ;; Object functions +(defmethod database-output-sql-as-type ((type (eql 'float)) val database (db-type (eql :postgresql))) + (declare (ignore database db-type)) + val) + +(defmethod database-output-sql-as-type ((type (eql 'float)) val database (db-type (eql :postgresql-socket))) + (declare (ignore database db-type)) + val) + +(defmethod database-output-sql ((self wall-time) (database generic-postgresql-database)) + (declare (ignore database)) + (concatenate 'string "'" (format-time nil self :format :iso8601) "'")) + +(defmethod database-output-sql ((self date) (database generic-postgresql-database)) + (declare (ignore database)) + (concatenate 'string "'" (format-time nil (date->time self) :format :iso8601) "'")) (defmethod database-get-type-specifier (type args database (db-type (eql :postgresql)))