vtkMySQLQuery::Execute() fails to detect error in certain cases
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
As explained at http://dev.mysql.com/doc/refman/5.0/en/null-mysql-store-result.html it is possible for mysql_store_result() to return null when it should not. In this case, vtkMySQLQuery::Execute does not notice the error has occured and sets this->Active to true. This leads to a crash on the next call to vtkMySQLQuery::NextRow() The actual crash is in mysql_fetch_row().
A fix is attached to this bug.