should be it
This commit is contained in:
20
external/duckdb/test/sql/parser/expression_depth_limit.test
vendored
Normal file
20
external/duckdb/test/sql/parser/expression_depth_limit.test
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# name: test/sql/parser/expression_depth_limit.test
|
||||
# description: Test max expression depth limit
|
||||
# group: [parser]
|
||||
|
||||
statement ok
|
||||
SELECT (1+(1+(1+(1+(1+(1+(1+1)))))));
|
||||
|
||||
statement ok
|
||||
SET max_expression_depth TO 7;
|
||||
|
||||
statement error
|
||||
SELECT (1+(1+(1+(1+(1+(1+(1+1)))))));
|
||||
----
|
||||
expression depth limit
|
||||
|
||||
statement ok
|
||||
SET max_expression_depth TO 1000;
|
||||
|
||||
statement ok
|
||||
SELECT (1+(1+(1+(1+(1+(1+(1+1)))))));
|
||||
Reference in New Issue
Block a user