title: MySQL C++ Connector UPDATE
body: <p>I am having trouble with the MySQL C++ Connector... My problem is I have a query : <code>UPDATE characters SET name = 'myNameIs' WHERE characregistra = 'MyguidIs'</code>
  characters is the table, name a column, characregistra too. I try to put the myNameIs value into name when I found in the column characregistra the value "MyguisIs". It works, but without try{]catch{], it crashes. I tried to get the error with a sql::SQLException, but no way, nothing in printed...
  Thanks in advance.</p>
  
  <p>EDIT : forgot to put the code :</p>
  
  <pre><code>void renameCharac(std::string guid, std::string pseudo)
  {
      try{
          sql::Statement *declaration;
          declaration = connection-&gt;createStatement(); // Connection is declared
          declaration-&gt;executeQuery("UPDATE characters SET name = '" + pseudo + "' WHERE characregistra = '" + guid + "'");
          delete declaration;
      }
      catch (sql::SQLException e)
      {
          std::cout &lt;&lt; e.what();
      }
  }
  </code></pre>