Revert previous change to query_classifier.cc, which was triggered due to bug # 391, http://bugs.skysql.com/show_bug.cgi?id=391
Bug was identified by test, but it couldn't be validated. Using RW Split router currently may lead to situation where after setting system variable there is a backend server which doesn't have the value set. This is an incomplete feature at the moment rather than a bug.
This commit is contained in:
@ -568,15 +568,7 @@ static skygw_query_type_t resolve_query_type(
|
|||||||
pthread_self())));
|
pthread_self())));
|
||||||
break;
|
break;
|
||||||
case Item_func::UNKNOWN_FUNC:
|
case Item_func::UNKNOWN_FUNC:
|
||||||
if (strncmp(item->name, "DATABASE()", 10) == 0)
|
func_qtype = QUERY_TYPE_READ;
|
||||||
{
|
|
||||||
/** 'USE <db' */
|
|
||||||
func_qtype = QUERY_TYPE_SESSION_WRITE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
func_qtype = QUERY_TYPE_READ;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Many built-in functions are of this
|
* Many built-in functions are of this
|
||||||
* type, for example, rand(), soundex(),
|
* type, for example, rand(), soundex(),
|
||||||
|
Reference in New Issue
Block a user