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 Syntax Error in sys_file_reference Query #53

Closed
GreenSumo opened this issue Apr 3, 2024 · 1 comment · Fixed by #54
Closed

SQL Syntax Error in sys_file_reference Query #53

GreenSumo opened this issue Apr 3, 2024 · 1 comment · Fixed by #54

Comments

@GreenSumo
Copy link
Contributor

\TGM\TgmCopyright\Domain\Repository\CopyrightReferenceRepository contains an error in line 82:

            return $finalQuery->statement('SELECT * FROM sys_file_reference WHERE AND deleted=0 AND hidden=0 AND uid IN(' . implode(',', $finalRecords) . ')')->execute();

This results in a syntax error:

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 'AND deleted=0 AND hidden=0 AND uid IN ...

I'm using MariaDB 10.6.16

@Schweriner
Copy link
Owner

Thanks for your contribution :-)

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 a pull request may close this issue.

2 participants