Repository navigation
[db] Move get_long from DB_BASE to DB_CONN - #7402
Conversation
Move arbitrary scalar integer queries to DB_CONN alongside get_double. Update DB_BASE::max_id and DB_BASE::count to use their connection, keeping their public behavior and the scalar conversion unchanged. Refs: BOINC#6972 Assisted-by: Codex:gpt-6-astra
|
@davidpanderson, please review |
|
What's the point of this change? |
|
This PR addresses #6972, which points out that The implementation and behavior are unchanged; the PR only moves the method and updates If you feel the API change isn't warranted for that benefit, I understand and can close the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7402 +/- ##
==========================================
- Coverage 13.08% 12.64% -0.44%
==========================================
Files 237 238 +1
Lines 34439 36979 +2540
Branches 7752 9103 +1351
==========================================
+ Hits 4507 4677 +170
- Misses 29864 32233 +2369
- Partials 68 69 +1
🚀 New features to boost your workflow:
|
Fixes #6972
Description of the Change
Move arbitrary scalar integer queries to DB_CONN alongside get_double. Update DB_BASE::max_id and DB_BASE::count to use their connection, keeping their public behavior and the scalar conversion unchanged.
Alternate Designs
Move the existing implementation rather than adding a second query helper or retaining table-specific ownership.
Release Notes
N/A
Validation
git diff --checkpassed.AI assistance
Codex assisted with implementation review, fixes, validation, and preparation of this description. The submitter has confirmed personal review and verification of the complete changes. Validation limits are stated above.
Summary by cubic
Fixes #6972. Moves
get_longfromDB_BASEtoDB_CONNso arbitrary scalar integer queries live alongsideget_double. UpdatesDB_BASE::max_idandDB_BASE::countto calldb->get_long, preserving their public behavior.get_longis no longer available onDB_BASE; any external callers must usedb->get_longinstead.Written for commit 7db58f7. Summary will update on new commits.