r11067: * sql/expressions.lisp: Use database-output-as-type if value exists...
[clsql.git] / sql / expressions.lisp
index cd1a6d397bc9a2665bf0472a80d5d14aa563e602..5bce5d89c03e30d9b5118392b2d3f338aacd34e9 100644 (file)
@@ -898,6 +898,16 @@ uninclusive, and the args from that keyword to the end."
        database))))
 
 (defmethod database-output-sql ((tee (eql t)) database)
+  (if database
+      (let ((val (database-output-sql-as-type 'boolean t database (database-type database))))
+        (if val
+            (typecase val
+              (string val)
+              (t (format nil "~A" val)))
+          "'Y'"))
+    "'Y'"))
+
+#+nil(defmethod database-output-sql ((tee (eql t)) database)
   (declare (ignore database))
   "'Y'")