#11 Execeptions don't follow DB-API v2.0

MySQLdb-1.0
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2001-07-28
Anonymous
No

SQL syntax errors are being raised as
OperationalErrors instead of ProgrammingErrors.

Discussion

  • Andy Dustman
    Andy Dustman
    2001-07-29

    Logged In: YES
    user_id=71372

    ER_SYNTAX_ERROR was being translated to ProgrammingError.
    However, MySQL returns ER_PARSE_ERROR when there is a SQL
    syntax error. This has been added to the list of
    ProgrammingError-raising codes. (To be in CVS real soon now.)