GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-16379: Expose sqlite error code by palaviv · Pull Request #1108 · python/cpython Conversation
|
|
Hi @palaviv Would you be interested to upgrade your PR to the last master? Thank you |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
365ad2a to
c236045
Compare
|
Sure @matrixise. Do you think there is a chance for this to be merged? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b9dc556 to
31467e3
Compare
|
If I remember https://bugs.python.org/issue24139 correctly, the issue was rather about exposing the extended error codes http://www.sqlite.org/c3ref/c_abort_rollback.html |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@dimaqq you are correct. This is a patch for https://bugs.python.org/issue16379. There is a different patch that depends on this change to solve https://bugs.python.org/issue24139. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'd really really like to have this feature... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| {"PARSE_COLNAMES", PARSE_COLNAMES}, | ||
|
|
||
| {"SQLITE_OK", SQLITE_OK}, | ||
| /* enumerated return values for sqlite3_set_authorizer() callback */ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It looks like SQLITE_OK is used in the wild (https://github.com/search?l=Python&p=4&q=SQLITE_OK&type=Code) thus it cannot be removed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
SQLITE_OK is definitely in use. For example, it is used one of the valid return values in authoriser callbacks.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #ifdef SQLITE_NOTADB | ||
| {"SQLITE_NOTADB", SQLITE_NOTADB}, | ||
| #endif | ||
| {"SQLITE_DONE", SQLITE_DONE}, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hi @palaviv, thanks for picking this up. Should SQLITE_NOTICE and SQLITE_WARNING be added to this list?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@palaviv: Can you rebase onto master and update your code to PEP 7 standards? Also, the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@palaviv, are you planning on landing this PR? If not, would you mind if I reopened a PR with your changes cherry-picked onto it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.