2020-02-25 00:51:28 +00:00
|
|
|
select count() > 1 as ok from (select * from odbc('DSN={ClickHouse DSN (ANSI)}','system','tables'));
|
|
|
|
select count() > 1 as ok from (select * from odbc('DSN={ClickHouse DSN (Unicode)}','system','tables'));
|
|
|
|
|
|
|
|
DROP DATABASE IF EXISTS test_01086;
|
|
|
|
CREATE DATABASE test_01086;
|
|
|
|
USE test_01086;
|
|
|
|
|
|
|
|
CREATE TABLE t (x UInt8, y Float32, z String) ENGINE = Memory;
|
2020-02-25 00:55:00 +00:00
|
|
|
INSERT INTO t VALUES (1,0.1,'a я'),(2,0.2,'b ą'),(3,0.3,'c d');
|
2020-02-25 00:51:28 +00:00
|
|
|
|
|
|
|
select * from odbc('DSN={ClickHouse DSN (ANSI)}','test_01086','t') ORDER BY x;
|
2020-02-25 00:55:00 +00:00
|
|
|
select * from odbc('DSN={ClickHouse DSN (Unicode)}','test_01086','t') ORDER BY x;
|
2020-02-25 00:51:28 +00:00
|
|
|
|
|
|
|
DROP DATABASE test_01086;
|