r4766: Auto commit for Debian build
[umlisp.git] / sql-classes.lisp
index 5a91238d4cf6e7a3459a545eab770c103269be57..9d64345db65eccd6f50a5b673256b2dcccd21aea 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Author:        Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: sql-classes.lisp,v 1.38 2003/05/03 20:29:40 kevin Exp $
+;;;; $Id: sql-classes.lisp,v 1.40 2003/05/03 20:33:16 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@ -71,8 +71,8 @@ is OBJNAME from TABLE where WHERE-NAME field = WHERE-VALUE with FIELDS"
                  ,where-name ,where-value)
          "")
       (if ,srl (format nil ,%%lrl ,srl) "")
-      ,%%order
-      (if ,single " limit 1" ""))))
+      ,@(when %%order (list %%order))
+      ,@(when single (" limit 1")))))
 
 (defun query-string (table fields &optional srl where-name where-value
                     &key (lrlname "KCUILRL") single distinct order like)