]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix mysql+gaerdbms dialect for changed exception format
authorDan Ring <dfring@gmail.com>
Sat, 20 Apr 2013 01:01:39 +0000 (18:01 -0700)
committerDan Ring <dfring@gmail.com>
Sat, 20 Apr 2013 01:01:39 +0000 (18:01 -0700)
commitd657cf0600e9fa1aa49a4e27ba2063073d879987
treefd4dd7950eea6d7f44e3b51c9ced975d193db851
parentb6bf8c2a3001c38684ef806678dd187926e1910b
Fix mysql+gaerdbms dialect for changed exception format

googleappengine v1.7.5 changed the exception format to be
incompatible with MySQLDialect_gaerdbms#_extract_error_code

This fix works for both old- and new-style exceptions.

Changes causing the breakage:
/trunk/python/google/storage/speckle/python/api/rdbms.py
at
https://code.google.com/p/googleappengine/source/detail?r=318
lib/sqlalchemy/dialects/mysql/gaerdbms.py