Skip to content

fix(recall): quote reserved word trigger — unblocks master startup & wallet billing - #687

Merged
think-back merged 1 commit into
mainfrom
fix/recall-trigger-reserved-word
Aug 11, 2026
Merged

fix(recall): quote reserved word trigger — unblocks master startup & wallet billing#687
think-back merged 1 commit into
mainfrom
fix/recall-trigger-reserved-word

Conversation

@think-back

@think-back think-back commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

MySQL 8.0 treats TRIGGER as a reserved word, so the unquoted
`WHERE trigger = ?` predicates fail with Error 1064 at parse time.

EnsureRecallContinuousTriggerSlotTx runs inside InitDB(), so the
syntax error is fatal on startup: the master node crash-loops and
never completes AutoMigrate. That left quota_lifecycle_states
uncreated in production, which in turn rolled back every wallet
settlement transaction in mutateUserWalletQuota -- wallet quota and
token quota both stopped being debited.

Backtick-quote the identifier in all four call sites.
@think-back
think-back merged commit c1b53b4 into main Aug 11, 2026
1 check passed
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