fix nested sql bug

This commit is contained in:
zzg19950727
2023-09-01 07:44:33 +00:00
committed by ob-robot
parent 1228ef225a
commit cb2055f349
2 changed files with 59 additions and 24 deletions

View File

@ -263,9 +263,15 @@ private:
int refine_buffer(PlanText &plan_text);
int prepare_and_store_session(ObSQLSessionInfo *session);
int prepare_and_store_session(ObSQLSessionInfo *session,
ObSQLSessionInfo::StmtSavedValue *&session_value,
transaction::ObTxDesc *&tx_desc,
int64_t &nested_count);
int restore_session(ObSQLSessionInfo *session);
int restore_session(ObSQLSessionInfo *session,
ObSQLSessionInfo::StmtSavedValue *&session_value,
transaction::ObTxDesc *tx_desc,
int64_t nested_count);
public:
static int format_one_output_expr(char *buf,
@ -279,8 +285,6 @@ public:
private:
common::ObIAllocator &allocator_;
int64_t save_nested_count_;
ObSQLSessionInfo::StmtSavedValue *saved_session_;
};
} // end of namespace sql