Let's use the real exception here.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2493 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -71,7 +71,7 @@ public class HsqldbLiaison extends BaseLiaison
|
||||
// from DatabaseLiaison
|
||||
public int lastInsertedId (Connection conn, String table, String column) throws SQLException
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
throw new UnsupportedOperationException();
|
||||
// // MySQL does not keep track of per-table-and-column insertion data, so we are pretty much
|
||||
// // going on blind faith here that we're fetching the right ID. In the overwhelming number
|
||||
// // of cases that will be so, but it's still not pretty.
|
||||
@@ -94,7 +94,7 @@ public class HsqldbLiaison extends BaseLiaison
|
||||
// from DatabaseLiaison
|
||||
public boolean isDuplicateRowException (SQLException sqe)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
throw new UnsupportedOperationException();
|
||||
// String msg = sqe.getMessage(); // TODO: not sure
|
||||
// return (msg != null && msg.indexOf("Duplicate entry") != -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user