You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Doku lacks information how to build/activate build of ODBC driver #74
ODBC driver is not ready for production usage.
You should build ODBC driver only if you are going to participate in development.
Quick description:
ODBC driver is completely isolated from the rest of code base. All its sources are located in dbms/src/ODBC directory and build separately. This is intended to minimize dependencies and allow to build on multiple platforms (Linux, Windows, Mac, Android, etc.)
It would be relatively easy to build and contribute because of small isolated code base.
To build on Linux, use instructions from build.sh file.
To install and test, see README.
It has very verbose logging by default (for development), you could disable in Log.h
Current status: driver tested and works with following programs:
isql
Tora
Libreoffice Base
Poco::Data::ODBC library
But this is too short for me. I am not a dev. I came so far but stuck:
cd ClickHouse-master/contrib/libpoco
./configure --static --config=Linux
Unknown configuration: Linux
Please use the --config option to specify another build configuration
The following configurations are available:
ls: cannot access /tmp/ClickHouse-master/contrib/libpoco/build/config: No such file or directory
sudo apt-get install libpoco-dev unixodbc-dev
cd ClickHouse-master/dbms/src/ODBC
./build.sh
In file included from ResultSet.cpp:2:0:
Statement.h: In member function ‘void Statement::sendRequest()’:
Statement.h:49:23: error: ‘class Poco::Net::HTTPClientSession’ has no member named ‘reset’
connection.session.reset();
^
So I assume the 2nd problem is caused by the first one...
Activity
alexey-milovidov commentedon Aug 15, 2016
ODBC driver is not ready for production usage.
You should build ODBC driver only if you are going to participate in development.
Quick description:
ODBC driver is completely isolated from the rest of code base. All its sources are located in dbms/src/ODBC directory and build separately. This is intended to minimize dependencies and allow to build on multiple platforms (Linux, Windows, Mac, Android, etc.)
It would be relatively easy to build and contribute because of small isolated code base.
To build on Linux, use instructions from build.sh file.
To install and test, see README.
It has very verbose logging by default (for development), you could disable in Log.h
Current status: driver tested and works with following programs:
isql
Tora
Libreoffice Base
Poco::Data::ODBC library
Only SELECTs was tested.
shinguz commentedon Aug 15, 2016
Thanks Alexey for the info!
But this is too short for me. I am not a dev. I came so far but stuck:
cd ClickHouse-master/contrib/libpoco
./configure --static --config=Linux
Unknown configuration: Linux
Please use the --config option to specify another build configuration
The following configurations are available:
ls: cannot access /tmp/ClickHouse-master/contrib/libpoco/build/config: No such file or directory
sudo apt-get install libpoco-dev unixodbc-dev
cd ClickHouse-master/dbms/src/ODBC
./build.sh
In file included from ResultSet.cpp:2:0:
Statement.h: In member function ‘void Statement::sendRequest()’:
Statement.h:49:23: error: ‘class Poco::Net::HTTPClientSession’ has no member named ‘reset’
connection.session.reset();
^
So I assume the 2nd problem is caused by the first one...
alexey-milovidov commentedon Aug 16, 2016
ODBC sources is build with 'stock' Poco library.
Install 'stock' version of Poco:
add
-fPICtoSTATICOPT_CCandSTATICOPT_CXXInstall latest version of unixodbc:
Then go to dbms/src/ODBC directory and run:
After this step, you will get
odbc.sofile, which is the ODBC driver.alexey-milovidov commentedon Dec 26, 2017
ODBC driver is moved to separate repository:
https://github.com/yandex/clickhouse-odbc
There you will find all details about building on Linux, Windows, Mac.
DOCS-265: max_http_get_redirects. EN review. RU translation. (#8389)
Merge pull request ClickHouse#74 from Enmk/21.1.10.2-PR+S3UrlFix