MXS-137: correct calculation of query length when length is >= 0x80

This commit is contained in:
Yuval Hager 2015-05-12 11:17:30 -07:00
parent 4964ec57db
commit 13200e8c74

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;