提交 ae562236 编写于 作者: M Maksim Kita

Added queries-file parameter. Updated tests.

上级 963ee521
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
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册