Skip to content

fix: use Database.Format for SQL escaping instead of g_hDB.Escape - #37

Merged
Rushaway merged 1 commit into
masterfrom
fix/sql-format-escaping
Aug 27, 2026
Merged

fix: use Database.Format for SQL escaping instead of g_hDB.Escape#37
Rushaway merged 1 commit into
masterfrom
fix/sql-format-escaping

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

  • Replace manual g_hDB.Escape + separate escaped buffer with g_hDB.Format, which escapes %s string arguments directly against the query.
  • Update .github/copilot-instructions.md guidance to match.
  • Bump version (2.2.1 -> 2.2.2).

Why

Database.Format is cleaner than a manual escape-then-format call and avoids extra driver/threading touchpoints from calling Escape directly.

Test plan

  • Compile plugin and confirm no errors
  • Save/delete a group self-mute filter and confirm the query still succeeds

Database.Format escapes %s arguments directly against the query,
avoiding a manual escape-into-buffer step before FormatEx.
Copilot AI lite review requested due to automatic review settings August 24, 2026 20:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Rushaway
Rushaway merged commit 96956c8 into master Aug 27, 2026
7 checks passed
@Rushaway
Rushaway deleted the fix/sql-format-escaping branch August 27, 2026 13:18
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.

2 participants