From 13d6731fad64ad36e35a5b6dbf8b7f1a5913a67f Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 23 Jun 2016 22:45:26 +0300 Subject: [PATCH] Added test [#METR-21817]. --- dbms/tests/queries/0_stateless/00335_bom.reference | 2 ++ dbms/tests/queries/0_stateless/00335_bom.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00335_bom.reference create mode 100755 dbms/tests/queries/0_stateless/00335_bom.sh diff --git a/dbms/tests/queries/0_stateless/00335_bom.reference b/dbms/tests/queries/0_stateless/00335_bom.reference new file mode 100644 index 00000000000..6622044ee6e --- /dev/null +++ b/dbms/tests/queries/0_stateless/00335_bom.reference @@ -0,0 +1,2 @@ +1 2 3 +4 5 6 diff --git a/dbms/tests/queries/0_stateless/00335_bom.sh b/dbms/tests/queries/0_stateless/00335_bom.sh new file mode 100755 index 00000000000..2aa3cf0fe8a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00335_bom.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo 'DROP TABLE IF EXISTS test.bom' | curl -sS 'http://localhost:8123/' --data-binary @- +echo 'CREATE TABLE test.bom (a UInt8, b UInt8, c UInt8) ENGINE = Memory' | curl -sS 'http://localhost:8123/' --data-binary @- +echo -ne '1,2,3\n' | curl -sS 'http://localhost:8123/?query=INSERT+INTO+test.bom+FORMAT+CSV' --data-binary @- +echo -ne '\xEF\xBB\xBF4,5,6\n' | curl -sS 'http://localhost:8123/?query=INSERT+INTO+test.bom+FORMAT+CSV' --data-binary @- +echo 'SELECT * FROM test.bom ORDER BY a' | curl -sS 'http://localhost:8123/' --data-binary @- +echo 'DROP TABLE test.bom' | curl -sS 'http://localhost:8123/' --data-binary @-