mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test [#METR-21885].
This commit is contained in:
parent
28b75ba8bc
commit
e38030fe5d
@ -0,0 +1,2 @@
|
||||
1
|
||||
['123','Hello world!','123']
|
8
dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh
Executable file
8
dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl -sS 'http://localhost:8123/' -d 'DROP TABLE IF EXISTS test.bad_arrays'
|
||||
curl -sS 'http://localhost:8123/' -d 'CREATE TABLE test.bad_arrays (a Array(String)) ENGINE = Memory'
|
||||
curl -sS 'http://localhost:8123/' -d 'INSERT INTO test.bad_arrays VALUES ([123])' 2>&1 | grep -c 'Exception'
|
||||
curl -sS 'http://localhost:8123/' -d "INSERT INTO test.bad_arrays VALUES (['123', concat('Hello', ' world!'), toString(123)])"
|
||||
curl -sS 'http://localhost:8123/' -d 'SELECT * FROM test.bad_arrays'
|
||||
curl -sS 'http://localhost:8123/' -d 'DROP TABLE test.bad_arrays'
|
Loading…
Reference in New Issue
Block a user