MySQL dialect's get_foreign_keys doesn't parse options

Issue #2839 resolved
Former user created an issue

MySQL dialect's get_foreign_keys method always gives onupdate and ondelete values of None. It also searches for match, but MySQL doesn't implement MATCH.

The regex parsing searches for MATCH with a \w+ for the value, then ON DELETE and ON UPDATE. I believe the \w+ will go on to match the ON DELETE and ON UPDATE as well.

Comments (5)

  1. Mike Bayer repo owner
    • changed milestone to 0.9.0

    AFAICT this is failing strictly because CASCADE has been spelled wrong for many years:

    kw['on']('on') = 'RESTRICT|CASCASDE|SET NULL|NOACTION'

  2. Log in to comment