I'm attempting to execute a prepared delete statement like so:
prep_stmt = conn->prepareStatement("DELETE FROM my_table WHERE my_column = ?");
sql::SQLString test_string = "\'asdf\'";
prep_stmt->setString(1, test_string);
int update_count = prep_stmt->executeUpdate();
There appears to be no runtime errors (at least, no exception is thrown). However, update_count is zero, and investigating the contents of the database after execution reveals that the associated data entry was not removed.
Has anyone seen this before?
prep_stmt = conn->prepareStatement("DELETE FROM my_table WHERE my_column = ?");
sql::SQLString test_string = "\'asdf\'";
prep_stmt->setString(1, test_string);
int update_count = prep_stmt->executeUpdate();
There appears to be no runtime errors (at least, no exception is thrown). However, update_count is zero, and investigating the contents of the database after execution reveals that the associated data entry was not removed.
Has anyone seen this before?