PyMySQL/Tornado-MySQL

multiple queries with warnings in one execute()

kyle-lu opened this issue · 1 comments

sql = "DROP PROCEDURE IF EXISTS test; CREATE PROCEDURE test() SELECT 1"
yield db.execute(sql)

The DROP would cause a warning if procedure not existed, but CREATE would succeed. result.warning_count would not be 0, but conn.show_warnings() would be empty.
Resulting uncaught exception.

won't fix. Go Python3 & asyncio.