SQL报错:ERROR: current transaction is aborted, commands ignored until end of transaction block
1、报错快照:
Cause: com.kingbase8.util.KSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
2、原因:
会话中只要有一个sql执行报错了,这个会话的后续sql操作都会报这个错误:
ERROR: current transaction is aborted, commands ignored until end of transaction block
3、解决:
rollback
或commit