Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs and pyodbc.pyi updates for pyodbc.odbcversion #1291

Merged
merged 1 commit into from
Oct 13, 2023
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 src/pyodbc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ version: Final[str] # not pep-0249
# read-write (not pep-0249)
lowercase: bool = False
native_uuid: bool = False
odbcversion: str = '3.X'
pooling: bool = True


Expand Down
4 changes: 2 additions & 2 deletions src/pyodbcmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ static char module_doc[] =
"\n"
"paramstyle\n"
" The string constant 'qmark' to indicate parameters are identified using\n"
" question marks."
" question marks.\n"
"\n"
"odbcversion\n"
" The ODBC version number as a string, such as '3.X' for ODBC 3.X compatibility.\n"
" This is a global (HENV) setting, so it can only be modified before the first\n"
" connection is made. Use 3.8 if you are using unixodbc connection pooling and your\n"
" drivers are all 3.8 compatible. The default is 3.X\n";
" drivers are all 3.8 compatible. The default is '3.X'.";

PyObject* Error;
PyObject* Warning;
Expand Down