Rename misleading function
The expecting resultset function does not expect a resultset but a text protocol result.
This commit is contained in:
parent
e15b0e2147
commit
d7b7f43efb
@ -640,7 +640,7 @@ static inline bool session_ok_to_route(DCB *dcb)
|
||||
return rval;
|
||||
}
|
||||
|
||||
static inline bool expecting_resultset(MySQLProtocol *proto)
|
||||
static inline bool expecting_text_result(MySQLProtocol *proto)
|
||||
{
|
||||
return proto->current_command == MXS_COM_QUERY ||
|
||||
proto->current_command == MXS_COM_STMT_FETCH;
|
||||
@ -818,7 +818,7 @@ gw_read_and_write(DCB *dcb)
|
||||
|
||||
if (collecting_resultset(proto, capabilities))
|
||||
{
|
||||
if (expecting_resultset(proto))
|
||||
if (expecting_text_result(proto))
|
||||
{
|
||||
if (mxs_mysql_is_result_set(read_buffer))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user