mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
adjust dockerfile used in tests to allow odbc roundtrip
This commit is contained in:
parent
f2cbfb0fc2
commit
80abb99723
@ -0,0 +1,8 @@
|
||||
1
|
||||
1
|
||||
1 0.1 a я
|
||||
2 0.2 b ą
|
||||
3 0.3 c d
|
||||
1 0.1 a я
|
||||
2 0.2 b ą
|
||||
3 0.3 c d
|
13
dbms/tests/queries/0_stateless/01086_odbc_roundtrip.sql
Normal file
13
dbms/tests/queries/0_stateless/01086_odbc_roundtrip.sql
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
||||
INSERT INTO t VALUES (1,0.1,'a'),(2,0.2,'b'),(3,0.3,'c');
|
||||
|
||||
select * from odbc('DSN={ClickHouse DSN (ANSI)}','test_01086','t') ORDER BY x;
|
||||
|
||||
DROP DATABASE test_01086;
|
@ -1,6 +1,8 @@
|
||||
# docker build -t yandex/clickhouse-stateless-test .
|
||||
FROM yandex/clickhouse-deb-builder
|
||||
|
||||
ARG odbc_driver_url="https://github.com/ClickHouse/clickhouse-odbc/releases/download/v1.1.3.20200115/clickhouse-odbc-1.1.3-Linux.tar.gz"
|
||||
|
||||
RUN apt-get update -y \
|
||||
&& env DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install --yes --no-install-recommends \
|
||||
@ -27,8 +29,16 @@ RUN apt-get update -y \
|
||||
gdb \
|
||||
lsof \
|
||||
llvm-8 \
|
||||
vim
|
||||
vim \
|
||||
unixodbc \
|
||||
wget
|
||||
|
||||
RUN mkdir -p /tmp/clickhouse-odbc-tmp \
|
||||
&& wget --quiet -O - ${odbc_driver_url} | tar --strip-components=1 -xz -C /tmp/clickhouse-odbc-tmp \
|
||||
&& cp /tmp/clickhouse-odbc-tmp/lib64/*.so /usr/local/lib/ \
|
||||
&& odbcinst -i -d -f /tmp/clickhouse-odbc-tmp/share/doc/clickhouse-odbc/config/odbcinst.ini.sample \
|
||||
&& odbcinst -i -s -l -f /tmp/clickhouse-odbc-tmp/share/doc/clickhouse-odbc/config/odbc.ini.sample \
|
||||
&& rm -rf /tmp/clickhouse-odbc-tmp
|
||||
|
||||
ENV TZ=Europe/Moscow
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
Loading…
Reference in New Issue
Block a user