Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

SQL Tainter mangles some INSERT statements #11

Description

@leeN

When rewriting the following INSERT statement:

INSERT INTO `building` VALUES ('Building 1'),('Building 2'),('Building 3'),('Building 4'),('Building 5'),('Building 6'),('Building 7'),('Building 8'),('Building 9');

Fontus turns this into:

INSERT INTO `building` VALUES (((((((((('Building 1'))))))))));

This is not generally the case when there are multiple VALUES provided, as, for example, the following query pair is rewritten correctly:

INSERT INTO `languages` VALUES  ('en','English',1), ('nl','Nederlands',2);
INSERT INTO `languages` VALUES ('en', '0', 'English', '0', 1, '0'), ('nl', '0', 'Nederlands', '0', 2, '0');

Based on a 30s look into the debugger, the starting point to debug this is here, as it breaks in the ItemsListTainter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQL RewritingSQL Rewriting altered the queries semanticsbugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions