X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Foperations.lisp;h=3270a83b3bcfdb1ef1a9d87905fe91a44a76b8d9;hb=9fb9efd51ef0477050f2c2ef0fe32bf1bef97067;hp=3357761e53a257312bf9ce93793dcdcededb3127;hpb=6c813a0543182a94859d01a6af85d5e08d23ec35;p=clsql.git diff --git a/sql/operations.lisp b/sql/operations.lisp index 3357761..3270a83 100644 --- a/sql/operations.lisp +++ b/sql/operations.lisp @@ -249,6 +249,16 @@ (make-instance 'sql-function-exp :name 'coalesce :args rest)) +(defsql sql-left (:symbol "left") (&rest rest) + "mssqlserver uses this to get the left n chars of a string" + (make-instance 'sql-function-exp + :name 'left :args rest)) + +(defsql sql-right (:symbol "right") (&rest rest) + "mssqlserver uses this to get the right n chars of a string" + (make-instance 'sql-function-exp + :name 'right :args rest)) + (defsql sql-nvl (:symbol "nvl") (&rest rest) (if (= (length rest) 2) (make-instance 'sql-function-exp