79124492

Date: 2024-10-25 06:40:08
Score: 1.5
Natty:
Report link

The issue was with the declared table_name variable. In MySQL, TABLE_NAME is a keyword. Hence, using it led to weird behavior. Changing the variable name to table_name_ fixed the issue.

I usually rely on my IDE to highlight all keywords in a special color but for some reason, PyCharm never highlighted it anyhow, making me believe it's ok to use it...

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Muslimbek Abduganiev