forked from mkleehammer/pyodbc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mkleehammer:master' into master
- Loading branch information
Showing
82 changed files
with
3,470 additions
and
16,185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,8 @@ x86/ | |
# Linters | ||
.flake8 | ||
.pylintrc | ||
.ruff_cache/ | ||
ruff.toml | ||
|
||
# Other | ||
pyodbc.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
# Development Testing | ||
|
||
We use tox for complete testing, but when you are in the middle of development you need fast | ||
turn around. In this mode you need to be able to build and run tests using pytest manually. | ||
To do this, build from the root of the directory using `--inplace` which will build the library | ||
into the root. Run pytest from the same root directory and the new pyodbc library you built | ||
will be in the path for your test: | ||
|
||
python setup.py build_ext --inplace | ||
pytest test/test_postgresql.py -vxk test_text | ||
|
||
If a segmentation fault occurs while running tests, pytest will have eaten the output. Add | ||
-s to the command line: | ||
|
||
python setup.py build_ext --inplace -D PYODBC_TRACE | ||
pytest test/test_postgresql.py -vxk test_text -vs | ||
|
||
|
||
# Notes | ||
|
||
## uint16_t | ||
|
||
You'll notice we use uint16_t instead of SQLWCHAR. The unixODBC headers would define SQLWCHAR | ||
as wchar_t even when wchar_t as defined by the C library as uint32_t. The data in the buffer | ||
was still 16 bit however. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ECHO *** pip install pytest and other dev requirements *** | ||
"%PYTHON_HOME%\python" -m pip install -r requirements-dev.txt --quiet --no-warn-script-location | ||
ECHO. |
Oops, something went wrong.