@@ -60,7 +60,7 @@ pub fn subexpr(min_precedence: u32) -> impl FnMut(Input) -> IResult<Expr> {
6060 {
6161 Err ( nom:: Err :: Error ( Error :: from_error_kind (
6262 i,
63- ErrorKind :: Other ( "expected more tokens for expression" ) ,
63+ ErrorKind :: other ( "expected more tokens for expression" ) ,
6464 ) ) )
6565 }
6666 _ => Ok ( ( rest, elem) ) ,
@@ -1822,7 +1822,7 @@ pub fn unary_op(i: Input) -> IResult<UnaryOperator> {
18221822 }
18231823 Err ( nom:: Err :: Error ( Error :: from_error_kind (
18241824 i,
1825- ErrorKind :: Other ( "expecting `NOT`, '!', '|/', '~', '||/', '@', or more ..." ) ,
1825+ ErrorKind :: other ( "expecting `NOT`, '!', '|/', '~', '||/', '@', or more ..." ) ,
18261826 ) ) )
18271827}
18281828
@@ -1889,7 +1889,7 @@ pub fn binary_op(i: Input) -> IResult<BinaryOperator> {
18891889 }
18901890 Err ( nom:: Err :: Error ( Error :: from_error_kind (
18911891 i,
1892- ErrorKind :: Other (
1892+ ErrorKind :: other (
18931893 "expecting `IS`, `IN`, `LIKE`, `EXISTS`, `BETWEEN`, `+`, `-`, `*`, `/`, `//`, `DIV`, `%`, `||`, `<=>`, `<+>`, `<->`, `>`, `<`, `>=`, `<=`, `=`, `<>`, `!=`, `^`, `AND`, `OR`, `XOR`, `NOT`, `REGEXP`, `RLIKE`, `SOUNDS`, or more ..." ,
18941894 ) ,
18951895 ) ) )
@@ -1915,7 +1915,7 @@ pub fn json_op(i: Input) -> IResult<JsonOperator> {
19151915 }
19161916 Err ( nom:: Err :: Error ( Error :: from_error_kind (
19171917 i,
1918- ErrorKind :: Other (
1918+ ErrorKind :: other (
19191919 "expecting `->`, '->>', '#>', '#>>', '?', '?|', '?&', '@>', '<@', '@?', '@@', '#-', or more ..." ,
19201920 ) ,
19211921 ) ) )
@@ -1961,7 +1961,7 @@ pub fn literal(i: Input) -> IResult<Literal> {
19611961
19621962 Err ( nom:: Err :: Error ( Error :: from_error_kind (
19631963 i,
1964- ErrorKind :: Other (
1964+ ErrorKind :: other (
19651965 "expecting `<LiteralString>`, '<LiteralCodeString>', '<LiteralInteger>', '<LiteralFloat>', 'TRUE', 'FALSE', or more ..." ,
19661966 ) ,
19671967 ) ) )
@@ -2029,7 +2029,7 @@ pub fn literal_string(i: Input) -> IResult<String> {
20292029 let quote:: QuotedString ( s, quote) = token
20302030 . text ( )
20312031 . parse ( )
2032- . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: Other ( "invalid escape or unicode" ) ) ) ?;
2032+ . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: other ( "invalid escape or unicode" ) ) ) ?;
20332033
20342034 if !i. dialect . is_string_quote ( quote) {
20352035 return Err ( nom:: Err :: Error ( ErrorKind :: ExpectToken ( LiteralString ) ) ) ;
@@ -2057,7 +2057,7 @@ pub fn at_string(i: Input) -> IResult<String> {
20572057 let AtString ( s) = token
20582058 . text ( )
20592059 . parse ( )
2060- . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: Other ( "invalid at string" ) ) ) ?;
2060+ . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: other ( "invalid at string" ) ) ) ?;
20612061 Ok ( s)
20622062 } ) ( i)
20632063}
@@ -2134,10 +2134,10 @@ pub fn type_name(i: Input) -> IResult<TypeName> {
21342134 Ok ( TypeName :: Decimal {
21352135 precision : precision
21362136 . try_into ( )
2137- . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: Other ( "precision is too large" ) ) ) ?,
2137+ . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: other ( "precision is too large" ) ) ) ?,
21382138 scale : scale
21392139 . try_into ( )
2140- . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: Other ( "scale is too large" ) ) ) ?,
2140+ . map_err ( |_| nom:: Err :: Failure ( ErrorKind :: other ( "scale is too large" ) ) ) ?,
21412141 } )
21422142 } ,
21432143 ) ;
@@ -2253,7 +2253,7 @@ pub fn type_name(i: Input) -> IResult<TypeName> {
22532253 Some ( true ) => Ok ( ty. wrap_nullable ( ) ) ,
22542254 Some ( false ) => {
22552255 if matches ! ( ty, TypeName :: Nullable ( _) ) {
2256- Err ( nom:: Err :: Failure ( ErrorKind :: Other (
2256+ Err ( nom:: Err :: Failure ( ErrorKind :: other (
22572257 "ambiguous NOT NULL constraint" ,
22582258 ) ) )
22592259 } else {
@@ -2684,7 +2684,7 @@ pub fn function_call(i: Input) -> IResult<ExprElement> {
26842684 args,
26852685 } )
26862686 }
2687- _ => Err ( nom:: Err :: Error ( ErrorKind :: Other (
2687+ _ => Err ( nom:: Err :: Error ( ErrorKind :: other (
26882688 "Unsupported function format" ,
26892689 ) ) ) ,
26902690 }
0 commit comments