Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds extended SQLite error code reporting to SqliteObserver::reportQueryEvent and QueryEvent.
Issues found (ranked by severity):
- [HIGH]
setQueryExtendedCodeassigns to the wrong member — writesqueryResultinstead ofextendedErrorCode. - [HIGH] The existing test in
sqlite-test.c++overridesreportQueryEventwith the old signature (missing the newextendedErrorCodeparameter). Since the override usesoverride, this will be a compile error on the new base class signature. The test needs to be updated.
This review was written by an AI assistant and may not be perfect. Please verify all suggestions before applying.
|
I'm Bonk, and I've done a quick review of your PR. This PR adds extended SQLite error code reporting to Issues found (ranked by severity):
Both comments with a suggested fix have been posted to the PR. |
Merging this PR will improve performance by 40.18%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | simpleStringBody[Response] |
27.2 µs | 19.4 µs | +40.18% |
Comparing zlefevre/report_extended_code (ccf5da4) with main (22c1ca0)
Footnotes
-
129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
a7312d1 to
cbe2e9f
Compare
There was a problem hiding this comment.
Correction to my earlier review: both issues I flagged were false positives — apologies for the noise.
setQueryExtendedCodecorrectly assigns toextendedErrorCode, notqueryResult. I misread the diff.- The test override in
sqlite-test.c++already includes the newint extendedErrorCodeparameter.
The changes look correct. LGTM.
|
LGTM |
cbe2e9f to
ccf5da4
Compare
No description provided.