Introduce new qc_parse() prototype
It is now possible to specify what information the caller is interested in. With this the cost for collecting information during the query parsing that nobody is interested in can be avoided.
This commit is contained in:
@ -136,7 +136,7 @@ bool ensure_query_is_parsed(GWBUF* query)
|
||||
return parsed;
|
||||
}
|
||||
|
||||
int32_t qc_mysql_parse(GWBUF* querybuf, int32_t* result)
|
||||
int32_t qc_mysql_parse(GWBUF* querybuf, uint32_t collect, int32_t* result)
|
||||
{
|
||||
bool parsed = ensure_query_is_parsed(querybuf);
|
||||
|
||||
|
Reference in New Issue
Block a user