Fixed queries without assignment operators failing to be properly canonized.

This commit is contained in:
Markus Makela
2015-10-26 20:12:04 +02:00
parent bed6666338
commit 9064212353
4 changed files with 74 additions and 1 deletions

View File

@ -1410,6 +1410,17 @@ char* skygw_get_canonical(
querystr = replace_literal(querystr, item->name, "?");
}
} /*< for */
/** Check for SET ... options with no Item classes */
if (thd->free_list == NULL)
{
char *replaced = replace_quoted(querystr);
if (replaced)
{
free(querystr);
querystr = replaced;
}
}
retblock:
return querystr;
}