X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foperations.lisp;h=b4d3eab8db559a4848640a754e8e4882e36f093b;hp=bc99d2a136eaf02297f8747a9c8e9eb250178393;hb=e622ee6f4bf2b9fe81af59d566e651c983a4833b;hpb=e303385b84c6246c7d60ebd95d764a282a181a23 diff --git a/sql/operations.lisp b/sql/operations.lisp index bc99d2a..b4d3eab 100644 --- a/sql/operations.lisp +++ b/sql/operations.lisp @@ -147,7 +147,7 @@ (if (= (length rest) 3) (make-instance 'sql-function-exp :name 'substring :args rest) - (error 'clsql-sql-syntax-error "SUBSTR must have 3 arguments."))) + (error 'sql-user-error :message "SUBSTR must have 3 arguments."))) (defsql sql-is (:symbol "is") (&rest rest) (make-instance 'sql-relational-exp @@ -213,7 +213,7 @@ (defsql sql-between (:symbol "between") (&rest rest) (if (= (length rest) 3) (make-instance 'sql-between-exp :name 'between :args rest) - (error 'clsql-sql-syntax-error "BETWEEN must have 3 arguments."))) + (error 'sql-user-error :message "BETWEEN must have 3 arguments."))) (defsql sql-distinct (:symbol "distinct") (&rest rest) (make-instance 'sql-query-modifier-exp :modifier 'distinct