Forums Register Login

This code snippet easily bring the database into inconsistent state

+Pie Number of slices to send: Send

If saveAuth is okay, but suddenly the power fails, and updateCustomerAuth
can't proceed, the database is in an inconsistent state.
I tried to use foreign key constraint with a cascade update,
and don't know if that works.
Any opinion?
Thanks
Jack
2
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
 

E Armitage wrote:You should use transactions: http://docs.oracle.com/javase/tutorial/jdbc/basics/transactions.html



Thanks, I'll just dig into that.
Jack
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 557 times.
Similar Threads
Do companies really use EJB?
Not able to understand this statement ?
Stateful Session Bean Discard
JBoss - MDB deployment
Oracle 10g driver throws java.sql.SQLException: OALL8 is in an inconsistent state Web
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:59:13.