r4769: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 3 May 2003 20:38:57 +0000 (20:38 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 3 May 2003 20:38:57 +0000 (20:38 +0000)
sql-classes.lisp

index db2eada53503062bb59b328b25e8e2744ebce455..549d06bad46b1b45f06b4dd602dc6e96bf118ae2 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Author:        Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: sql-classes.lisp,v 1.42 2003/05/03 20:38:20 kevin Exp $
+;;;; $Id: sql-classes.lisp,v 1.43 2003/05/03 20:38:57 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@ -65,8 +65,8 @@ is OBJNAME from TABLE where WHERE-NAME field = WHERE-VALUE with FIELDS"
     `(concatenate
       'string
       ,%%fields
-      ,@(when where-name (list %%where))
-      (if where-name
+      ,@(when %%where (list %%where))
+      (if ,where-name
          (format nil (if (stringp ,where-value)
                          (if ,like " like '%~A%'" "='~A'")
                          "=~A")