From 1f698fd27a1fe64c8a336f3b25e38d714e71102a Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 28 Aug 2024 07:41:36 +0200 Subject: [PATCH] Add odbc files for Linux --- odbc_test_linux/odbc.ini | 27 +++++++++++++++++++++++++++ odbc_test_linux/odbcinst.ini | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 odbc_test_linux/odbc.ini create mode 100644 odbc_test_linux/odbcinst.ini diff --git a/odbc_test_linux/odbc.ini b/odbc_test_linux/odbc.ini new file mode 100644 index 000000000..f90d67a36 --- /dev/null +++ b/odbc_test_linux/odbc.ini @@ -0,0 +1,27 @@ +[MySQL] +Driver = MySQL Driver +SERVER = 127.0.0.1 +UID = mysqluser +PASSWORD = password +DATABASE = test_db +PORT = 3306 +INITSTMT = set session time_zone ='+00:00'; + +[PostgreSQL] +Driver = PostgreSQL Driver +Database = test_db +Servername = localhost +UserName = postgres +Password = password +Port = 5432 +Protocol = 7.4 +UseServerSidePrepare = 1 +BoolsAsChar = 0 +ConnSettings = set time zone 'UTC'; +UseDeclareFetch = 1 + +[MSSQL] +Driver = ODBC Driver 17 for SQL Server +Server = localhost +Port = 1433 +Database = test_db diff --git a/odbc_test_linux/odbcinst.ini b/odbc_test_linux/odbcinst.ini new file mode 100644 index 000000000..079658df1 --- /dev/null +++ b/odbc_test_linux/odbcinst.ini @@ -0,0 +1,13 @@ +[MySQL Driver] +Driver = /opt/mysql-connector-odbc-5.1.13-linux-glibc2.5-x86-64bit/lib/libmyodbc5.so +UsageCount = 1 +Threading = 2 + +[PostgreSQL Driver] +Driver = CONDA_PREFIX/lib/psqlodbcw.so +FileUsage = 1 +Threading = 2 + +[ODBC Driver 17 for SQL Server] +Description = Microsoft ODBC Driver 17 for SQL Server +Driver = /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.10.so.6.1