fixed Issue 1500:MySQL driver unable to handle IntegrityError, thanks wheresgatsby
This commit is contained in:
@@ -2522,6 +2522,9 @@ class MySQLAdapter(BaseAdapter):
|
||||
self.execute('select last_insert_id();')
|
||||
return int(self.cursor.fetchone()[0])
|
||||
|
||||
def integrity_error_class(self):
|
||||
return self.cursor.IntegrityError
|
||||
|
||||
class PostgreSQLAdapter(BaseAdapter):
|
||||
drivers = ('psycopg2','pg8000')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user