X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Foperations.lisp;h=3270a83b3bcfdb1ef1a9d87905fe91a44a76b8d9;hb=6828cb461404126aa0c334fe2b669d435304f73e;hp=1b52925347434b6e6d56325d7a8ce35a164bc39b;hpb=854d6db1e0908de79f24855652cafa340753fd6f;p=clsql.git diff --git a/sql/operations.lisp b/sql/operations.lisp index 1b52925..3270a83 100644 --- a/sql/operations.lisp +++ b/sql/operations.lisp @@ -128,6 +128,16 @@ (make-instance 'sql-relational-exp :operator '~* :sub-expressions rest)) +(defsql |sql-~* ANY| (:symbol "~* ANY") (&rest rest) + "This is the postgres regex match any in an array" + (make-instance 'sql-relational-exp + :operator '|~* ANY| :sub-expressions rest)) + +(defsql sql-array (:symbol "array") (&rest rest) + "This is the postgres regex match any in an array" + (make-instance 'sql-array-exp + :operator 'array :sub-expressions rest)) + (defsql sql-uplike (:symbol "uplike") (&rest rest) (make-instance 'sql-upcase-like :sub-expressions rest)) @@ -239,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