X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foperations.lisp;h=94ee20964b5c089ded361d10902eb30b890881c6;hp=9d8440a474ca8e41ec8fd12d83310a11085736e0;hb=46525a14e41672ba3daaf79c68fdc413e47c4fd0;hpb=aa707c93f55554dc5447c58f24e1b3ad4c01f0b9 diff --git a/sql/operations.lisp b/sql/operations.lisp index 9d8440a..94ee209 100644 --- a/sql/operations.lisp +++ b/sql/operations.lisp @@ -242,3 +242,15 @@ (defsql sql-userenv (:symbol "userenv") (&rest rest) (make-instance 'sql-function-exp :name 'userenv :args rest)) + +(defsql sql-lower (:symbol "lower") (&rest rest) + (if (= (length rest) 1) + (make-instance 'sql-function-exp + :name 'lower :args rest) + (error 'sql-user-error :message "LOWER must have 1 argument."))) + +(defsql sql-upper (:symbol "upper") (&rest rest) + (if (= (length rest) 1) + (make-instance 'sql-function-exp + :name 'upper :args rest) + (error 'sql-user-error :message "UPPER must have 1 argument.")))