Fixed value replacement and added more tests for canonicalization of queries

The value replacement was not taking session or system variables into notice.
This commit is contained in:
Markus Makela
2016-01-07 12:04:55 +02:00
parent 995ed8c9d2
commit 9c9e30fa08
4 changed files with 155 additions and 5 deletions

View File

@ -57,8 +57,8 @@ int main(int argc, char** argv)
return 1;
}
while (!feof(infile))
{
while (!feof(infile) && fgets(readbuff, 4092, infile))
{
fgets(readbuff,4092,infile);
char* nl = strchr(readbuff, '\n');
if(nl)