Commits

Mike Bayer committed 2a43188

- changelog
- just do a fetchone() here, no need for len() etc.

  • Participants
  • Parent commits 6c62c91

Comments (0)

Files changed (2)

File doc/build/changelog/changelog_08.rst

 
     .. change::
       :tags: bug, mysql
+      :pullreq: 55
+
+      Fixes to support the latest cymysql DBAPI, courtesy
+      Hajime Nakagami.
+
+    .. change::
+      :tags: bug, mysql
       :tickets: 2663
 
       Improvements to the operation of the pymysql dialect on

File lib/sqlalchemy/dialects/mysql/base.py

         try:
             try:
                 rs = connection.execute(st)
-                have = len(rs.fetchall()) > 0
+                have = rs.fetchone() is not None
                 rs.close()
                 return have
             except exc.DBAPIError, e: