Repository navigation
Route Prism errors to PEP 249 subclasses in Python 2.2.0 - #6
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
sqlstateanderrorcodeon picklable exceptions, including code0. Message-only responses and unknown classes useDatabaseError.polypheny.connection. Classify cursor misuse, lost connections, protocol mismatches, and unsupported values through their DB-API exceptions.Verification
c548758eaa8aa55c936656eb6c09fdaefb537517, the latest fixture follow-up passed all 196 pytest cases on each of HSQLDB and File. The preceding driver revision passed all 193 cases and five Sphinx doctests on each of HSQLDB, File, Neo4j, and MongoDB. These suites include S1–S15.DataErrorwith22018, S8 returnedDataErrorwith22012, and the same cursor successfully queried after rollback. Neo4j retained its historical diagnostics. MongoDB supplied the SQL evaluator's diagnostics. Python exposed the exact text received from Prism in each case.ProtoFileahead of a buffered row.DatabaseErrorfor statement and login failures, preserved the original text, and exposed both metadata attributes asNone. The connection remained usable after rollback.pip checkand the error pickle round trip passed.Dependencies and CI
masterby default and honorsPOLYPHENY_DB_REFwhen set. At the switch,masterresolved to merge commitb6182725e89160f320d69838015155c19768dda5. Its source tree matches the tested revision above and contains the Neo4j and MongoDB fixes. Main test workflow · DB #605 · DB #606