- (concatenate
- 'string
- (format nil "select ~A from ~:@(~A~)" ,%%fields ,table)
- (if ,where-name
- (format nil
- (if (stringp ,where-value)
- (if like
- " where ~A like '%~A%'"
- " where ~A='~A'")
- " where ~A=~A")
- ,where-name ,where-value)
- "")
- (if ,srl (format nil " and ~:@(~A~) <= ~D" ,lrlname ,srl) "")
- ,%%order
- (if ,single " limit 1" "")))
+ `(concatenate
+ 'string
+ (format nil "select ~A from ~:@(~A~)" ,%%fields ,table)
+ (if ,where-name
+ (format nil
+ (if (stringp ,where-value)
+ (if like
+ " where ~A like '%~A%'"
+ " where ~A='~A'")
+ " where ~A=~A")
+ ,where-name ,where-value)
+ "")
+ (if ,srl (format nil " and ~:@(~A~) <= ~D" ,lrlname ,srl) "")
+ ,%%order
+ (if ,single " limit 1" ""))))