From: Kevin M. Rosenberg Date: Sun, 4 May 2003 01:34:33 +0000 (+0000) Subject: r4790: Auto commit for Debian build X-Git-Tag: v2006ac.2~208 X-Git-Url: http://git.kpe.io/?p=umlisp.git;a=commitdiff_plain;h=d986ff112bf47b3f0c1a8629c3981e30380f0928 r4790: Auto commit for Debian build --- 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")))))