Connector/J 8, catching primary key violations
Posted by: Chris Cheshire
Date: June 26, 2018 10:31AM

How do I go about catching primary key violations using the new version of Connector/J? In 5.1 I was able to catch com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException and handle it accordingly.

That class no longer exists in 8.0, and looking through the jar I don't see any analogous exception. Not only that, there's nothing in the upgrade guide that mentions that the previous exception classes have been removed and what to use instead.

Options: ReplyQuote


Subject
Written By
Posted
Connector/J 8, catching primary key violations
June 26, 2018 10:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.