r4787: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 4 May 2003 01:18:10 +0000 (01:18 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 4 May 2003 01:18:10 +0000 (01:18 +0000)
sql-classes.lisp

index b341e458a9edccb5758cc77c1db022a508a38f9c..f76d6ecbf957a3909b3ca27e480b65d23aa118a4 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Author:        Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: sql-classes.lisp,v 1.60 2003/05/04 00:46:33 kevin Exp $
+;;;; $Id: sql-classes.lisp,v 1.61 2003/05/04 01:18:10 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@ -55,7 +55,8 @@
                                         &key (lrl "KCUILRL") distinct single
                                         order like)
                                  &body body)
-  (let ((value (gensym)))
+  (let ((value (gensym))
+       (eval-fields (cadr fields)))
     (if single
        `(let ((,value ,where-value))
          (when ,value 
@@ -64,7 +65,7 @@
                                            :distinct ,distinct :order ,order
                                            :like ,like))))
              (when tuple
-               (destructuring-bind ,fields tuple
+               (destructuring-bind ,eval-fields tuple
                  ,@body)))))
        `(let ((,value ,where-value))
          (when ,value 
@@ -72,7 +73,7 @@
                  (umlisp-query-eval ,table ,fields ,srl ,where-name ,value
                                     :lrl ,lrl :single ,single :distinct ,distinct
                                     :order ,order :like ,like)
-                 collect (destructuring-bind ,fields tuple
+                 collect (destructuring-bind ,eval-fields tuple
                            ,@body)))))))