From d986ff112bf47b3f0c1a8629c3981e30380f0928 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 4 May 2003 01:34:33 +0000 Subject: [PATCH] r4790: Auto commit for Debian build --- sql-classes.lisp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sql-classes.lisp b/sql-classes.lisp index 207d700..b04569f 100644 --- a/sql-classes.lisp +++ b/sql-classes.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: sql-classes.lisp,v 1.63 2003/05/04 01:25:24 kevin Exp $ +;;;; $Id: sql-classes.lisp,v 1.64 2003/05/04 01:34:33 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -108,9 +108,17 @@ is OBJNAME from TABLE where WHERE-NAME field = WHERE-VALUE with FIELDS" ,%%fields ,@(when %%where (list %%where)) ,@(when %%where + #+ignore `((if (numberp ,where-value) (write-to-string ,where-value) - (format nil ,(if like "'%~A%'" "'~A'") ,where-value)))) + (format nil ,(if like "'%~A%'" "'~A'") ,where-value))) + `((typecase ,where-value + (number + (write-to-string ,where-value)) + ((nil) + " is null") + (t + (format nil ,(if like "'%~A%'" "'~A'") ,where-value))))) (if ,srl (concatenate 'string ,%%lrl (write-to-string ,srl)) "") ,@(when %%order (list %%order)) ,@(when single (list " limit 1"))))) -- 2.34.1