Merge pull request #82 from yhager/MXS-137

MXS-137: correct calculation of query length when length is >= 0x80
This commit is contained in:
markus456 2015-05-13 11:12:44 +03:00
commit c2e881f544

View File

@ -258,7 +258,8 @@ char *
modutil_get_SQL(GWBUF *buf)
{
unsigned int len, length;
char *ptr, *dptr, *rval = NULL;
unsigned char *ptr;
char *dptr, *rval = NULL;
if (!modutil_is_SQL(buf) && !modutil_is_SQL_prepare(buf))
return rval;