Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mssql_python/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,7 @@ def getinfo(self, info_type: int) -> Union[str, int, bool, None]:
# String types - these return strings in pyodbc
string_type_constants = {
GetInfoConstants.SQL_DATA_SOURCE_NAME.value,
GetInfoConstants.SQL_DATABASE_NAME.value,
GetInfoConstants.SQL_DRIVER_NAME.value,
GetInfoConstants.SQL_DRIVER_VER.value,
GetInfoConstants.SQL_SERVER_NAME.value,
Expand Down
1 change: 1 addition & 0 deletions tests/test_003_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2882,6 +2882,7 @@ def test_getinfo_string_encoding_utf16(db_connection):
("SQL_DRIVER_VER", sql_const.SQL_DRIVER_VER.value),
("SQL_DRIVER_NAME", sql_const.SQL_DRIVER_NAME.value),
("SQL_DRIVER_ODBC_VER", sql_const.SQL_DRIVER_ODBC_VER.value),
("SQL_DATABASE_NAME", sql_const.SQL_DATABASE_NAME.value),
("SQL_SERVER_NAME", sql_const.SQL_SERVER_NAME.value),
]

Expand Down
Loading