diff --git a/src/dsql/parse.y b/src/dsql/parse.y index 96fd450391..d336c9a789 100644 --- a/src/dsql/parse.y +++ b/src/dsql/parse.y @@ -4717,7 +4717,7 @@ substring_function : SUBSTRING '(' value FROM value string_length_opt ')' string_length_opt : FOR value { $$ = $2; } | - { $$ = MAKE_const_slong (SHRT_POS_MAX); } + { $$ = MAKE_const_slong (LONG_POS_MAX); } ; trim_function : TRIM '(' trim_specification value FROM value ')'