mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Fix _mysql_Execption() typo. Code is only compiled when MySQL-4.1
is in use, and I haven't done any actual testing against 4.1 yet. Please report any bugs to the SourceForge tracker.
This commit is contained in:
@@ -682,7 +682,7 @@ _mysql_ConnectionObject_autocommit(
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
err = mysql_autocommit(&(self->connection), flag);
|
||||
Py_END_ALLOW_THREADS
|
||||
if (err) return _mysql_Execption(self);
|
||||
if (err) return mysql_Exception(self);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
@@ -700,7 +700,7 @@ _mysql_ConnectionObject_commit(
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
err = mysql_commit(&(self->connection));
|
||||
Py_END_ALLOW_THREADS
|
||||
if (err) return _mysql_Execption(self);
|
||||
if (err) return mysql_Exception(self);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
@@ -718,7 +718,7 @@ _mysql_ConnectionObject_rollback(
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
err = mysql_rollback(&(self->connection));
|
||||
Py_END_ALLOW_THREADS
|
||||
if (err) return _mysql_Execption(self);
|
||||
if (err) return mysql_Exception(self);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user