From c721e19886bf9c49237dc4b5a0b90ef05bde4b08 Mon Sep 17 00:00:00 2001 From: Sabra Crolleton Date: Tue, 13 Dec 2022 08:32:44 -0500 Subject: [PATCH] Fix for other packages methods for cl-postgres:to-sql-string This commit changes s-sql::to-s-sql-string to call cl-postgres:to-sql-string for unknown types, picking up other packages providing new methods for cl-postgres:to-sql-string. --- s-sql/s-sql.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s-sql/s-sql.lisp b/s-sql/s-sql.lisp index a6937d7..e6da87a 100644 --- a/s-sql/s-sql.lisp +++ b/s-sql/s-sql.lisp @@ -161,7 +161,7 @@ You can define to-s-sql-string methods for your own datatypes.") (:method ((arg (eql :null))) "NULL") (:method ((arg t)) - (error "Value ~S can not be converted to an SQL literal." arg))) + (cl-postgres:to-sql-string arg))) (defun to-sql-name (name &optional (escape-p *escape-sql-names-p*) (ignore-reserved-words nil))