Update query.js

Regex does not match the following error: ```Sql
Cannot add or update a child row: a foreign key constraint fails (`database`.`Table`, CONSTRAINT `Table_ibfk_1` FOREIGN KEY (`ForeignKey`) REFERENCES `OtherTable` (`id`) ON DELETE SET NULL ON UPDATE CASCADE)
```
Addionnal text like "ON DELETE SET NULL ON UPDATE CASCADE" was not handled by the regex.