title: Commands out of sync USING MYSQL ODBC CONNECTOR
body: <p>When calling an select statement after cursor operation I get : commands out of sync , you can't run this command now.  The below is just a rough snippet of store procedure for testing purpose.
  If it uses a cursor but does no "SELECT" statement, everything works.</p>
  
  <pre><code>CREATE PROCEDURE TestOne()
  BEGIN
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
  DECLARE cur_textCursor CURSOR FOR ( SELECT 1 );
  OPEN cur_textCursor ; 
  IF done THEN
  CLOSE textCursor ;
   END IF;
  SELECT 1;
  END 
  </code></pre>
  
  <blockquote>
    <p>Using MySQL ODBC 5.3 ANSI Driver </p>
    
    <p>MySQL version 5.5</p>
  </blockquote>
  
  <p><strong>Update :</strong></p>
  
  <p>The above issue works fine in My Sql ODBC Connector 5.1 Driver.</p>
  
  <p>It is still a bug in My Sql ODBC Connector 5.3 ANSI Driver</p>