Eclipse says "You have an error in your sql syntax", but the same query works in workbench. Where is the problem? : <p>I have this preprared statement that doesn't works in ecplise, but for workbench is ok, what can i do?</p>

<pre><code>public void aggiornaArma(Arma Armi) throws SQLException {
PreparedStatement myStmt = null;
try {
    myStmt=myConn.prepareStatement("update arma"
+"set danni=?,Descrizione=?,costo=?,impugnatura=?,tipo=?"
            +" where nome=?");
    myStmt.setInt(1, Armi.getDanni());
    myStmt.setString(2,Armi.getDescrizione());
    myStmt.setInt(3,Armi.getCosto());
    myStmt.setString(4, Armi.getImpugnatura());
    myStmt.setString(5,Armi.getTipo());
    myStmt.setString(6,Armi.getNome());
    myStmt.executeUpdate();
}
</code></pre>
