If I have code similar to the following:
let connection;
let preparedStatement;
connection = createConnectionSomehow();
connection.setAutoCommit(false);
preparedStatement = connection.prepareStatement(query1);
preparedStatement.executeUpdate();
preparedStatement = connection.prepareStatement(query2);
preparedStatement.executeUpdate();
connection.commit();
Will both queries be executed, or will the second query overwrite the first one?