Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Tainter mangles some INSERT statements #11

Open
leeN opened this issue Feb 20, 2024 · 0 comments
Open

SQL Tainter mangles some INSERT statements #11

leeN opened this issue Feb 20, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers SQL Rewriting SQL Rewriting altered the queries semantics

Comments

@leeN
Copy link
Collaborator

leeN commented Feb 20, 2024

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.

@leeN leeN added bug Something isn't working good first issue Good for newcomers SQL Rewriting SQL Rewriting altered the queries semantics labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers SQL Rewriting SQL Rewriting altered the queries semantics
Projects
None yet
Development

No branches or pull requests

1 participant