r4779: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 3 May 2003 22:27:58 +0000 (22:27 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 3 May 2003 22:27:58 +0000 (22:27 +0000)
sql-classes.lisp

index 4961295c94ba897fd219601a713a45aecf1f8cbf..c0747f9db11c33ae5b3a52a0e5db23e89d8307ef 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Author:        Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: sql-classes.lisp,v 1.52 2003/05/03 22:10:15 kevin Exp $
+;;;; $Id: sql-classes.lisp,v 1.53 2003/05/03 22:27:58 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@ -62,8 +62,9 @@ is OBJNAME from TABLE where WHERE-NAME field = WHERE-VALUE with FIELDS"
                           (if distinct "distinct " "") fields table))
         (%%order (if order (format nil " order by ~{~:@(~A~) ~(~A~)~^,~}" order) ""))
         (%%lrl (format nil " and ~:@(~A~)<=" lrl))
-        (%%where (format nil " where ~:@(~A~)~A" (quote where-name)
-                         (if like " like " "="))))
+        (%%where (when where-name
+                   (format nil " where ~:@(~A~)~A" where-name
+                         (if like " like " "=")))))
     `(concatenate
       'string
       ,%%fields