Skip to content

Commit b30c6e4

Browse files
authored
Merge pull request #235 from RaffaeleDV/support-to-saphana
Change server string in ODBC Driver for SAPHANA
2 parents 888b529 + 4aa0fce commit b30c6e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DatabaseLibrary/connection_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ def _arg_or_config(arg_value, param_name, *, old_param_name=None, mandatory=Fals
393393
if db_host and db_port:
394394
if odbc_driver and "mysql" in odbc_driver.lower():
395395
con_str += f"SERVER={db_host}:{db_port};"
396+
elif odbc_driver and "saphana" in dbDriver.lower():
397+
con_str += f"SERVERNODE={dbHost}:{dbPort}"
396398
else:
397399
con_str += f"SERVER={db_host},{db_port};"
398400

0 commit comments

Comments
 (0)