mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Backport #63787 to 24.3: Fix test_odbc_interaction
for arm64 on linux
This commit is contained in:
parent
0cf0d81254
commit
562db1374e
@ -4294,6 +4294,9 @@ class ClickHouseInstance:
|
||||
)
|
||||
return xml_str
|
||||
|
||||
def get_machine_name(self):
|
||||
return platform.machine()
|
||||
|
||||
@property
|
||||
def odbc_drivers(self):
|
||||
if self.odbc_ini_path:
|
||||
@ -4301,12 +4304,12 @@ class ClickHouseInstance:
|
||||
"SQLite3": {
|
||||
"DSN": "sqlite3_odbc",
|
||||
"Database": "/tmp/sqliteodbc",
|
||||
"Driver": "/usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so",
|
||||
"Setup": "/usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so",
|
||||
"Driver": f"/usr/lib/{self.get_machine_name()}-linux-gnu/odbc/libsqlite3odbc.so",
|
||||
"Setup": f"/usr/lib/{self.get_machine_name()}-linux-gnu/odbc/libsqlite3odbc.so",
|
||||
},
|
||||
"MySQL": {
|
||||
"DSN": "mysql_odbc",
|
||||
"Driver": "/usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so",
|
||||
"Driver": f"/usr/lib/{self.get_machine_name()}-linux-gnu/odbc/libmyodbc.so",
|
||||
"Database": odbc_mysql_db,
|
||||
"Uid": odbc_mysql_uid,
|
||||
"Pwd": odbc_mysql_pass,
|
||||
@ -4323,8 +4326,8 @@ class ClickHouseInstance:
|
||||
"ReadOnly": "No",
|
||||
"RowVersioning": "No",
|
||||
"ShowSystemTables": "No",
|
||||
"Driver": "/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so",
|
||||
"Setup": "/usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so",
|
||||
"Driver": f"/usr/lib/{self.get_machine_name()}-linux-gnu/odbc/psqlodbca.so",
|
||||
"Setup": f"/usr/lib/{self.get_machine_name()}-linux-gnu/odbc/libodbcpsqlS.so",
|
||||
"ConnSettings": "",
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user