fix inaccurate error message of -4007 under oracle mode

This commit is contained in:
dimstars
2022-12-19 14:11:28 +00:00
committed by ob-robot
parent a6e31de130
commit cc7209f86d
2 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ int ObSqlTransControl::stmt_sanity_check_(ObSQLSessionInfo *session,
ret = OB_NOT_SUPPORTED; ret = OB_NOT_SUPPORTED;
TRANS_LOG(ERROR, "statement of weak consistency is not allowed under SERIALIZABLE isolation", TRANS_LOG(ERROR, "statement of weak consistency is not allowed under SERIALIZABLE isolation",
KR(ret), "trans_id", session->get_tx_id(), "consistency_level", cl); KR(ret), "trans_id", session->get_tx_id(), "consistency_level", cl);
LOG_USER_ERROR(OB_NOT_SUPPORTED, "weak consistency under SERIALIZABLE isolation level"); LOG_USER_ERROR(OB_NOT_SUPPORTED, "weak consistency under SERIALIZABLE and REPEATABLE-READ isolation level");
} }
} }
return ret; return ret;

View File

@ -31,7 +31,7 @@ c1 c2
commit; commit;
begin; begin;
select /*+read_consistency(weak) */ * from xm_test_t1; select /*+read_consistency(weak) */ * from xm_test_t1;
ERROR 0A000: weak consistency under SERIALIZABLE isolation level not supported ERROR 0A000: weak consistency under SERIALIZABLE and REPEATABLE-READ isolation level not supported
commit; commit;
begin; begin;
select * from xm_test_t1; select * from xm_test_t1;