Skip to content

Updates_20261201: version bumps and audit fixes - #964

Merged
erikdarlingdata merged 1 commit into
devfrom
release/updates-20261201
Nov 23, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
release/updates-20261201

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Release prep for tag Updates_20261201: version bumps on the bundled procs, the style-audit fixes, and one logic fix. Install-All/DarlingData.sql is not touched (CI rebuilds it after merge).

Versions

@version_date is 20261201 for every row.

Proc Old New
sp_HealthParser 3.11 3.12
sp_HumanEvents 7.11 7.12
sp_HumanEventsBlockViewer 5.11 5.12
sp_IndexCleanup 2.11 2.12
sp_LogHunter 3.11 3.12
sp_PerfCheck 2.11 2.12
sp_PressureDetector 6.11 6.12
sp_QueryReproBuilder 1.11 1.12
sp_QuickieCache 1.11 1.12
sp_QuickieStore 6.11 6.12
sp_QueryStoreCleanup 1.10 1.12 (its code changed this cycle; date was 20261001)
TestBackupPerformance 1.1 1.2 (COPY_ONLY changed its behavior; date was 20260601)

No README states these versions.

Style-audit fixes

  • sp_QuickieStore, INSERT ... WITH (TABLOCK): 51 inserts in the @plan_parsing block now put WITH at the INSERT indent and (TABLOCK) one level deeper, as in the style guide. The audit listed 23 (QS-1 slice); the QS-2 slice (line 20501 on) holds 28 more with the same layout, so all 51 are fixed. Every instance is in code added this cycle; none in older code needed a change. Under git diff -w these changes vanish (whitespace only).
  • sp_QuickieStore, CREATE CLUSTERED INDEX on #plan_operators (5 columns) and #plan_edges (6 columns): one column per line inside parentheses.
  • sp_QuickieStore, simple CASE on operation_type (3 WHEN/THEN pairs): THEN on its own line at the WHEN indent, matching the other multi-line simple CASEs in the same new code.
  • Clear Token Perm/ClearTokenPerm Agent Job.sql: int to integer in the @active_start_date declaration and its CONVERT (audit finding), plus @ReturnCode int on line 42 (same file, same rule, not in the audit).

Logic fix: EffectiveAnnualInterestRate

The guard WHEN (@Rate <= 0) OR (@Periods < 1) THEN 0 turned negative rates into 0, while FutureValue and Payment accept negative rates and the formula already gives 0 at rate 0. The guard is now WHEN (@Periods < 1) only.

Rate Periods Result
-0.01 12 -0.00995429374308443
0 12 0
0.05 12 0.051161897881732976
0.05 0 0

Verification

  • git diff -w: outside version lines, int to integer, the index column lists, the CASE lines and the guard, nothing is left (TABLOCK changes are whitespace only). Only the 14 named files changed; no Install-All changes.
  • Scratch database on SQL Server 2022: installed all 12 changed procs plus the function with no errors. Ran each proc with @help = 1 and read @version and @version_date from the OUTPUT parameters: all show the new values in the table above. The four function results above were run there. The agent job script was checked with SET PARSEONLY ON (no errors) and not run. The scratch database is dropped.
  • No full test suite exists for these scripts; CI decides.

Considered, not changed

  • ProtectSession stays at 1.0 (comment-only change this cycle).
  • TestBackupPerformance goes to 1.2, not 1.12, because this proc counts up by 0.1 per change.
  • Optional one-line CASE ... END inside SUM(/MAX( in sp_QuickieStore: the audits did not report them (the guide's own examples use that shape).

🤖 Generated with Claude Code

https://claude.ai/code/session_01M98owbb9iKsAUWvSpjCFTz

Bump the ten bundled procs to .12 with date 20261201, sp_QueryStoreCleanup to 1.12 and TestBackupPerformance to 1.2. Fix the TABLOCK, index column list and CASE layout in sp_QuickieStore, int to integer in ClearTokenPerm, and let EffectiveAnnualInterestRate accept negative rates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M98owbb9iKsAUWvSpjCFTz
@erikdarlingdata
erikdarlingdata marked this pull request as ready for review November 23, 2026 20:41
@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @erikdarlingdata's task in 13s —— View job


Review of PR #964

No blocking problems found.

  • Scope: Install-All/DarlingData.sql is untouched. The version bumps come from the maintainer, so that rule is satisfied.
  • Versions: All 12 @version / @version_date pairs match the table in the PR description.
  • EffectiveAnnualInterestRate: The guard is now WHEN (@Periods < 1) only. A rate of 0 still gives 0 through the formula. A negative rate gives a valid negative result instead of being forced to 0. I did not run it. The check is from reading the diff and the PR's results table.
  • Whitespace and formatting: With git diff -w, the sp_QuickieStore changes reduce to the index column lists and the CASE THEN lines. These match the CLAUDE.md layout. The 51 TABLOCK changes are whitespace only, so I didn't check them individually.
  • Type fix: int to integer in the agent job script is correct.

Nothing I'd change.

@erikdarlingdata
erikdarlingdata merged commit fdc9da0 into dev Nov 23, 2026
8 checks passed
@erikdarlingdata
erikdarlingdata deleted the release/updates-20261201 branch November 23, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant