I am updating status value of a table in db(mysql), i.e -2 to 0 through jdbc connection in java, now i need to fetch all those rows having 0 as status, in other method. Now when i am trying to fetch all those values having status 0, the recent updated rows are not included. I think there might be some buffer issues but not sure about it, can somebody help me out about the solution regarding the above issue.
Edit:- Currently I am using something like this.
connection.setAutoCommit(false);
String taskUpdateString = "update query"
taskStatement = connection.prepareStatement(taskUpdateString);
taskStatement.execute();
connection.commit();