projects
/
umlisp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3921045
)
r4764: Auto commit for Debian build
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 3 May 2003 20:29:40 +0000
(20:29 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 3 May 2003 20:29:40 +0000
(20:29 +0000)
sql-classes.lisp
patch
|
blob
|
history
diff --git
a/sql-classes.lisp
b/sql-classes.lisp
index d1ec01e13fa7ea874dfafa74cae9864e7c0ac135..5a91238d4cf6e7a3459a545eab770c103269be57 100644
(file)
--- a/
sql-classes.lisp
+++ b/
sql-classes.lisp
@@
-7,7
+7,7
@@
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: sql-classes.lisp,v 1.3
7 2003/05/03 20:24:22
kevin Exp $
+;;;; $Id: sql-classes.lisp,v 1.3
8 2003/05/03 20:29:40
kevin Exp $
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
@@
-59,18
+59,18
@@
is OBJNAME from TABLE where WHERE-NAME field = WHERE-VALUE with FIELDS"
&key (lrlname "KCUILRL") single distinct order like)
(let* ((%%fields (format nil "select ~A~{~:@(~A~)~^,~} from ~:@(~A~)"
(if distinct "distinct " "") fields table))
&key (lrlname "KCUILRL") single distinct order like)
(let* ((%%fields (format nil "select ~A~{~:@(~A~)~^,~} from ~:@(~A~)"
(if distinct "distinct " "") fields table))
- (%%order (if order (format nil " order by ~{~:@(~A~) ~(~A~)~^,~}" order) "")))
+ (%%order (if order (format nil " order by ~{~:@(~A~) ~(~A~)~^,~}" order) ""))
+ (%%lrl (format nil " and ~:@(~A~) <= ~~D" lrlname)))
`(concatenate
'string
,%%fields
(if ,where-name
`(concatenate
'string
,%%fields
(if ,where-name
- (format nil
- (if (stringp ,where-value)
- (if ,like " where ~A like '%~A%'" " where ~A='~A'")
- " where ~A=~A")
+ (format nil (if (stringp ,where-value)
+ (if ,like " where ~A like '%~A%'" " where ~A='~A'")
+ " where ~A=~A")
,where-name ,where-value)
"")
,where-name ,where-value)
"")
- (if ,srl (format nil
" and ~:@(~A~) <= ~D" ,lrlname
,srl) "")
+ (if ,srl (format nil
,%%lrl
,srl) "")
,%%order
(if ,single " limit 1" ""))))
,%%order
(if ,single " limit 1" ""))))