57 Star 318 Fork 120

GVPSOFAStack / sofa-tracer

 / 详情

测试主键冲突捕获的异常

Backlog
Opened this issue  
2020-10-13 11:55
  • 添加sofa-tracer依赖:
org.springframework.jdbc.UncategorizedSQLException: 
### Error updating database.  Cause: java.sql.SQLException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  • 去掉sofa-tracer依赖:
org.springframework.dao.DuplicateKeyException: 
### Error updating database.  Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (EIIS_DEV01.T_OPEN_TEST_PK)

正常应该拿出 DuplicateKeyException 但实际集成后拿不到了

Comments (0)

zyza created任务
zyza set related repository to SOFAStack/sofa-tracer
zyza changed title
zyza changed description
zyza changed description
zyza changed description
zyza changed description
Expand operation logs

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
Java
1
https://git.oschina.net/sofastack/sofa-tracer.git
git@git.oschina.net:sofastack/sofa-tracer.git
sofastack
sofa-tracer
sofa-tracer

Search