title: MySQL Query executes but throws exception
body: <p>My code:</p>
  
  <pre><code>try {
      sql::Driver *driver;
      sql::Connection *con;
      sql::Statement *stmt;
  
      /* Create a connection */
      driver = get_driver_instance();
      con = driver-&gt;connect("tcp://127.0.0.1:3306", "root", "123456");
  
      stmt = con-&gt;createStatement();
      stmt-&gt;executeQuery("CREATE USER 'user22'");
  
      delete stmt;
      delete con;
  
  } catch (sql::SQLException &amp;e) {
      cout &lt;&lt; "# ERR: " &lt;&lt; e.what();
      cout &lt;&lt; " (MySQL error code: " &lt;&lt; e.getErrorCode();
      cout &lt;&lt; ", SQLState: " &lt;&lt; e.getSQLState() &lt;&lt; " )" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>Creates the user22 but also throws an (empty?) exception:</p>
  
  <pre><code># ERR:  (MySQL error code: 0, SQLState: 00000 )
  </code></pre>
  
  <p>Of course, re-executing it results in proper exception:</p>
  
  <pre><code># ERR: Operation CREATE USER failed for 'user22'@'%' (MySQL error code: 1396, SQLState: HY000 )
  </code></pre>
  
  <p>Commenting the <code>executeQuery</code> line results in no exceptions (blank output)
  Is this common? Should I just ignore this?</p>