should be it
This commit is contained in:
23
external/duckdb/test/fuzzer/sqlsmith/json_contains_null.test
vendored
Normal file
23
external/duckdb/test/fuzzer/sqlsmith/json_contains_null.test
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# name: test/fuzzer/sqlsmith/json_contains_null.test
|
||||
# description: JSON Contains with NULL varchar parameters
|
||||
# group: [sqlsmith]
|
||||
|
||||
require json
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
query I
|
||||
SELECT json_contains(NULL::VARCHAR, NULL::VARCHAR);
|
||||
----
|
||||
NULL
|
||||
|
||||
query I
|
||||
WITH cte AS (
|
||||
SELECT NULL::VARCHAR j
|
||||
FROM range(1)
|
||||
)
|
||||
SELECT json_contains(j, j)
|
||||
FROM cte
|
||||
----
|
||||
NULL
|
||||
Reference in New Issue
Block a user