Permalink
Browse files

Fixed issue with read buffer not being cleared after handling OK packets

  • Loading branch information...
1 parent 43f7e15 commit 42315c7fb4af4e7eb8321de6885b7931b48d5fc8 @jskorpan jskorpan committed Oct 1, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 lib/Connection.cpp
  2. +1 −1 setup.py
  3. +1 −1 tests/tests.py
View
2 lib/Connection.cpp
@@ -569,6 +569,8 @@ void *Connection::handleOKPacket()
size_t len = m_reader.getBytesLeft();
UINT8 *message = m_reader.readBytes(m_reader.getBytesLeft());
+ m_reader.skip();
+
return m_capi.resultOK(affectedRows, insertId, serverStatus, (char *) message, len);
}
View
2 setup.py
@@ -94,7 +94,7 @@
define_macros=[('WIN32_LEAN_AND_MEAN', None)])
setup (name = 'umysql',
- version = "2.3",
+ version = "2.4",
description = "Ultra fast MySQL driver for Python",
ext_modules = [module1],
author="Jonas Tarnstrom",
View
2 tests/tests.py
@@ -344,7 +344,7 @@ def testMySQLClientManyInserts(self):
cnti = cntj = 0
print datetime.datetime.now(),'\tstarting test'
try:
- for i in xrange(10000):
+ for i in xrange(200):
cnti += 1
cntj = 0
for j in xrange(10000):

0 comments on commit 42315c7

Please sign in to comment.