fix inaccurate error message of -4007 under oracle mode
This commit is contained in:
@ -559,7 +559,7 @@ int ObSqlTransControl::stmt_sanity_check_(ObSQLSessionInfo *session,
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
TRANS_LOG(ERROR, "statement of weak consistency is not allowed under SERIALIZABLE isolation",
|
||||
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;
|
||||
|
||||
@ -31,7 +31,7 @@ c1 c2
|
||||
commit;
|
||||
begin;
|
||||
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;
|
||||
begin;
|
||||
select * from xm_test_t1;
|
||||
|
||||
Reference in New Issue
Block a user