I am having a strange problem with jdbc and MySql, this is what i am doing: I open a java.sql.Connection
, do a query, I do not close the connection for reuse purpose. I then update the same database using phpMyadmin,
when i come back to java, retrieving from the same database with the same unclosed connection gives me old results not the one that i updated. what could be the problem?
What i am not closing is only the connection, the rest, preparedStatement, resultSet are closed after each query.