made booleans work correctly for objects in postgresql-socket3
[clsql.git] / db-postgresql-socket3 / sql.lisp
index 6fdef8e1c6b8ea7c404a722f371975cbb9f9acb1..ad24ee6edc08621ab8b7ecc752c04dda9a404494 100644 (file)
 
 (when (clsql-sys:database-type-library-loaded :postgresql-socket3)
   (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)
\ No newline at end of file