Added queries-file parameter. Updated tests.

This commit is contained in:
Maksim Kita 2020-11-06 22:00:26 +03:00
parent 963ee5211b
commit ae56223611
2 changed files with 7 additions and 11 deletions

View File

@ -1,8 +1,6 @@
Code: 81. DB::Exception: Received from localhost:9000. DB::Exception: Database `test` doesn't exist.
Code: 81. DB::Exception: Received from localhost:9000. DB::Exception: Database `test` doesn't exist.
Code: 36. DB::Exception: Specify either `query` or `queries-file` option
1
1
2
3
1 2
3 4

View File

@ -13,11 +13,9 @@ SELECT * FROM 01523_test;
DROP TABLE 01523_test;" > 01523_client_local_queries_file_parameter_tmp.sql
$CLICKHOUSE_CLIENT --queries-file=01523_client_local_queries_file_parameter_tmp.sql 2>&1
$CLICKHOUSE_CLIENT --queries='t' --query='t' 2>&1
echo "CREATE TABLE table (a Int64, b Int64) ENGINE = File(CSV, stdin);
SELECT a, b FROM table;
DROP TABLE table;" > 01523_client_local_queries_file_parameter_tmp.sql
echo "CREATE TABLE 01523_test (a Int64, b Int64) ENGINE = File(CSV, stdin);
SELECT a, b FROM 01523_test;
DROP TABLE 01523_test;" > 01523_client_local_queries_file_parameter_tmp.sql
echo -e "1,2\n3,4" | $CLICKHOUSE_LOCAL --queries-file=01523_client_local_queries_file_parameter_tmp.sql 2>&1