Skip to content

fix: use Database.Format for SQL escaping instead of SQL_EscapeString - #59

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

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

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

  • Replace manual SQL_EscapeString + separate escaped buffers with Database.Format, which escapes %s string arguments directly.
  • Bump version (2.5.6 -> 2.5.7).

Why

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

Test plan

  • Compile plugin and confirm no errors
  • Join with a name/message containing quotes and confirm the row is inserted/updated correctly

Database.Format escapes %s arguments automatically, avoiding a manual
call+buffer per parameter and the extra driver/threading touchpoints
from calling SQL_EscapeString directly.
Copilot AI lite review requested due to automatic review settings August 24, 2026 20:03

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 004eae4 into master Aug 27, 2026
7 checks passed
@Rushaway
Rushaway deleted the fix/sql-format-escaping branch August 27, 2026 08:27
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