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:
VilhoRaatikka
2014-01-30 12:14:40 +02:00
parent 89de86320e
commit 0a13bf9989

View File

@ -568,15 +568,7 @@ static skygw_query_type_t resolve_query_type(
pthread_self())));
break;
case Item_func::UNKNOWN_FUNC:
if (strncmp(item->name, "DATABASE()", 10) == 0)
{
/** 'USE <db' */
func_qtype = QUERY_TYPE_SESSION_WRITE;
}
else
{
func_qtype = QUERY_TYPE_READ;
}
func_qtype = QUERY_TYPE_READ;
/**
* Many built-in functions are of this
* type, for example, rand(), soundex(),