Skip to content

Conversation

@bytehead
Copy link
Contributor

@bytehead bytehead commented Nov 19, 2025

An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insertion.pdf')' at line 1

Affected query (in combination with codefog/tags-bundle):

SELECT cfg_tag_id FROM tl_cfg_tag_files WHERE files_id IN ('files/foo/bar/l'insertion.pdf')

@bytehead
Copy link
Contributor Author

[OK] 5 files would have been changed (dry-run) by Rector

As I only changed one file, this is probably unrelated.

Copy link
Collaborator

@aschempp aschempp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use a prepared statement with ArrayParameterType::STRING

@bytehead
Copy link
Contributor Author

Should I adapt the rest of the method as well to prepared statements?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants