!6574 修复mysql协议下多命令结果错误问题
Merge pull request !6574 from chenxiaobin/fixMultiQuery
This commit is contained in:
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user