Commit e4c5555
Pin _classify_operational dispatch for code=0 and code=None
Upstream's gateway emits FailureResponse(code=0, "empty statement")
on empty / comment-only / no-bound-parameters SQL. The wire layer
accepts the code; the dbapi classifier should route it through to
the default OperationalError (no special PEP 249 mapping). Pin
both the code=0 (empty-statement upstream emission) and the
code=None (wire-decode / ProtocolError-wrapped) dispatches.
Test-only addition; no production code change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0393790 commit e4c5555
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments