The Server Side cursor breaks when the operation causes
warnings, because a SHOW WARNINGS query is issued
internally by the driver after the execute. (in
This is illegal since there are still rows on the
server which have not been fetched causeing a mysql
command out of sequence error.