This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
insertRow() working but the result of the insert is not visible in the Java application
posted 2 years ago
I have the following simple program, which successfully inserts a row into table T:
The problem is, the insert is not visible in the Java program. When I query the db, it's there, but inside the Java program, it isn't. In the example provided in the book that I'm using the inserted data is visible when the resultSet is printed out after the insert. They are using mySQL; I'm using Oracle.
My output is:
Before the insert:
Row not inserted
After the insert: