I am using H2 embeded database.
I try to delete a record from a table as follows:

PreparedStatement stmt = connection.prepareStatement("DELETE FROM
MYTABLE WHERE id= ?", Statement.NO_GENERATED_KEYS);
stmt.setObject(1, "1234");
int result = stmt.executeUpdate();

The row is deleted but return count is always 0!
Is this a bug? Am I doing something wrong here?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to