Skip to content

Commit

Permalink
fix bug when 'parse_obj->parsed.curSize == 0', ret is not set, in pro…
Browse files Browse the repository at this point in the history
…xy_read_query
  • Loading branch information
winkyao committed May 5, 2015
1 parent 43e21e4 commit 0ab60ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/proxy/proxy-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ NETWORK_MYSQLD_PLUGIN_PROTO(proxy_read_query) {
goto network_handle;
} else if (parse_obj->parsed.curSize == 0) {
g_warning("%s: parsed.curSize == 0, origin sql: %.*s", G_STRLOC, packets->len-1, packets->str+1);
error_response("Proxy Warning - sql parse unknown error, Please communicate with us.", packets, con);
ret = error_response("Proxy Warning - sql parse unknown error, Please communicate with us.", packets, con);
sqlite3ParseClean(parse_obj);
goto network_handle;
}
Expand Down

0 comments on commit 0ab60ff

Please sign in to comment.