Update query operation enum and add EXECUTE
Changed the query operation enum to contain implicit enum values instead of providing. The operation was never used as a bitmask so it is pointless to declare them as such. Added the EXECUTE type to the enum and used it in qc_sqlite and qc_mysqlembedded.
This commit is contained in:
@ -1745,6 +1745,10 @@ int32_t qc_mysql_get_operation(GWBUF* querybuf, int32_t* operation)
|
||||
*operation = QUERY_OP_REVOKE;
|
||||
break;
|
||||
|
||||
case SQLCOM_EXECUTE:
|
||||
*operation = QUERY_OP_EXECUTE;
|
||||
break;
|
||||
|
||||
default:
|
||||
*operation = QUERY_OP_UNDEFINED;
|
||||
}
|
||||
|
@ -2032,6 +2032,7 @@ void maxscaleExecute(Parse* pParse, Token* pName)
|
||||
|
||||
info->status = QC_QUERY_PARSED;
|
||||
info->type_mask = QUERY_TYPE_WRITE;
|
||||
info->operation = QUERY_OP_EXECUTE;
|
||||
|
||||
// If information is collected in several passes, then we may
|
||||
// this information already.
|
||||
|
Reference in New Issue
Block a user