Closed
Description
Maybe this is more of a question than an actual issue, sorry about that.
I am attempting to solve this issue: evetrivia/thanatos#15
Which errors out when running the following SQL: https://github.com/evetrivia/thanatos/tree/master/thanatos/database/procs
The MySQL documentation says that the IF EXISTS clause is an extension and that it will throw an error. OK fine. Everything online seems to say it should throw a Warning exception though, not a ProgramingError.
Reference:
- https://stackoverflow.com/questions/4143686/python-and-mysqldb-using-drop-table-if-exists-seems-to-throw-exception
- https://stackoverflow.com/questions/20080153/mysql-if-exists-command-causes-an-error-when-used-in-python
Is there a reason why this causes a ProgrammingError instead of a Warning? What is the best way to handle it?
Metadata
Metadata
Assignees
Labels
No labels