diff --git a/VERSION b/VERSION index fb57f9ee..235eb864 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.05.24.08.27.55 +Version 2.4.6-stable+timestamp.2013.05.24.08.34.18 diff --git a/gluon/dal.py b/gluon/dal.py index 1efe948c..89dbb99d 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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')