Added test [#METR-22252].

This commit is contained in:
Alexey Milovidov 2016-08-17 09:11:25 +03:00
parent 635fed9055
commit ffbd901c9c
2 changed files with 107 additions and 5 deletions

View File

@ -0,0 +1,106 @@
1
1
1
1
Syntax error
Syntax error
Syntax error
Syntax error
Syntax error
1
2
1
2
Syntax error
1
2
3
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
1
2
3
4
5
6
1
2
3
4
5
6
1
1
1
1
Syntax error
Syntax error
Syntax error
Syntax error
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
7
8
9

View File

@ -7,7 +7,7 @@ clickhouse-client --query="SELECT 1 ; "
clickhouse-client --query="SELECT 1; S" 2>&1 | grep -o 'Syntax error' clickhouse-client --query="SELECT 1; S" 2>&1 | grep -o 'Syntax error'
clickhouse-client --query="SELECT 1; SELECT 2" 2>&1 | grep -o 'Syntax error' clickhouse-client --query="SELECT 1; SELECT 2" 2>&1 | grep -o 'Syntax error'
clickhouse-client --query="SELECT 1; SELECT 2; 2>&1 | grep -o 'Syntax error'" clickhouse-client --query="SELECT 1; SELECT 2;" 2>&1 | grep -o 'Syntax error'
clickhouse-client --query="SELECT 1; SELECT 2; SELECT" 2>&1 | grep -o 'Syntax error' clickhouse-client --query="SELECT 1; SELECT 2; SELECT" 2>&1 | grep -o 'Syntax error'
clickhouse-client -n --query="SELECT 1; S" 2>&1 | grep -o 'Syntax error' clickhouse-client -n --query="SELECT 1; S" 2>&1 | grep -o 'Syntax error'
@ -21,15 +21,11 @@ clickhouse-client --query="INSERT INTO test.t VALUES (1),(2),(3);"
clickhouse-client --query="SELECT * FROM test.t" clickhouse-client --query="SELECT * FROM test.t"
clickhouse-client --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)" clickhouse-client --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)"
clickhouse-client --query="SELECT * FROM test.t" clickhouse-client --query="SELECT * FROM test.t"
clickhouse-client --query="INSERT INTO test.t VALUES (7)" <<< ",(8),(9)"
clickhouse-client --query="SELECT * FROM test.t"
clickhouse-client -n --query="INSERT INTO test.t VALUES (1),(2),(3);" clickhouse-client -n --query="INSERT INTO test.t VALUES (1),(2),(3);"
clickhouse-client -n --query="SELECT * FROM test.t" clickhouse-client -n --query="SELECT * FROM test.t"
clickhouse-client -n --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)" clickhouse-client -n --query="INSERT INTO test.t VALUES" <<< "(4),(5),(6)"
clickhouse-client -n --query="SELECT * FROM test.t" clickhouse-client -n --query="SELECT * FROM test.t"
clickhouse-client -n --query="INSERT INTO test.t VALUES (7)" <<< ",(8),(9)"
clickhouse-client -n --query="SELECT * FROM test.t"
curl -sS 'http://localhost:8123/' -d "SELECT 1" curl -sS 'http://localhost:8123/' -d "SELECT 1"
curl -sS 'http://localhost:8123/' -d "SELECT 1;" curl -sS 'http://localhost:8123/' -d "SELECT 1;"