Loading sharding-proxy/src/main/java/io/shardingsphere/proxy/backend/AbstractBackendHandler.java +4 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,9 @@ public abstract class AbstractBackendHandler implements BackendHandler { protected abstract CommandResponsePackets execute0() throws Exception; private Optional<SQLException> findSQLException(final Exception exception) { if (exception instanceof SQLException) { return Optional.of((SQLException) exception); } if (null == exception.getCause()) { return Optional.absent(); } Loading @@ -57,7 +60,7 @@ public abstract class AbstractBackendHandler implements BackendHandler { return Optional.absent(); } if (exception.getCause().getCause() instanceof SQLException) { return Optional.of((SQLException) exception.getCause()); return Optional.of((SQLException) exception.getCause().getCause()); } return Optional.absent(); } Loading Loading
sharding-proxy/src/main/java/io/shardingsphere/proxy/backend/AbstractBackendHandler.java +4 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,9 @@ public abstract class AbstractBackendHandler implements BackendHandler { protected abstract CommandResponsePackets execute0() throws Exception; private Optional<SQLException> findSQLException(final Exception exception) { if (exception instanceof SQLException) { return Optional.of((SQLException) exception); } if (null == exception.getCause()) { return Optional.absent(); } Loading @@ -57,7 +60,7 @@ public abstract class AbstractBackendHandler implements BackendHandler { return Optional.absent(); } if (exception.getCause().getCause() instanceof SQLException) { return Optional.of((SQLException) exception.getCause()); return Optional.of((SQLException) exception.getCause().getCause()); } return Optional.absent(); } Loading