Skip to content

DROP PROCEDURE IF EXISTS produces ProgrammingError instead of Warning #48

@regner

Description

@regner

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:

Is there a reason why this causes a ProgrammingError instead of a Warning? What is the best way to handle it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions