Fix to MXS-220: https://mariadb.atlassian.net/browse/MXS-220
Switched Item_func::name to Item_func::func_name.
This commit is contained in:
parent
cefd775717
commit
0684cd40ce
@ -772,8 +772,8 @@ static skygw_query_type_t resolve_query_type(
|
||||
pthread_self())));
|
||||
break;
|
||||
case Item_func::UNKNOWN_FUNC:
|
||||
if (item->name != NULL &&
|
||||
strcmp(item->name, "last_insert_id()") == 0)
|
||||
|
||||
if (strcmp((char*)((Item_func*)item)->func_name (), "last_insert_id") == 0)
|
||||
{
|
||||
func_qtype |= QUERY_TYPE_MASTER_READ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user