修复mysql协议下多命令结果错误问题

This commit is contained in:
chenxiaobin19
2024-10-26 14:15:48 +08:00
parent 383eac9ac3
commit e6fa13aeb0
3 changed files with 4 additions and 0 deletions

View File

@ -3080,6 +3080,8 @@ static void exec_simple_query(const char* query_string, MessageType messageType,
CommandCounterIncrement();
}
u_sess->proc_cxt.nextQuery = lnext(parsetree_item) != NULL;
/*
* Tell client that we're done with this query. Note we emit exactly
* one EndCommand report for each raw parsetree, thus one for each SQL

View File

@ -621,6 +621,7 @@ static void knl_u_proc_init(knl_u_proc_context* proc_cxt)
proc_cxt->sessionBackupState = SESSION_BACKUP_NONE;
proc_cxt->registerExclusiveHandlerdone = false;
proc_cxt->check_auth = false;
proc_cxt->nextQuery = false;
}
static void knl_u_time_init(knl_u_time_context* time_cxt)

View File

@ -1258,6 +1258,7 @@ typedef struct knl_u_proc_context {
char* TblspcMapFile;
bool registerAbortBackupHandlerdone; /* unterminated backups handler flag */
bool check_auth;
bool nextQuery; /* for B-cmpt protocal */
} knl_u_proc_context;
/* maximum possible number of fields in a date string */