We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I spotted a wrong sql-query with a missing query-builder-expression here:
blog/Classes/Routing/Aspect/StaticDatabaseMapper.php
Line 144 in 243fa31
Current:
$queryBuilder->andWhere($key, $queryBuilder->createNamedParameter($value));
leads to SELECT crdate_year FROM pages WHERE (doktype) AND (:dcValue1) AND...
crdate_year
pages
and results in
0 2017 2018 2019 2020 2021 2022
Wanted:
$queryBuilder->andWhere($queryBuilder->expr()->eq($key, $queryBuilder->createNamedParameter($value)));
leads to SELECT crdate_year FROM pages WHERE (doktype = :dcValue1) AND...
doktype
2019 2020 2021 2022
So it's just 1 line for fixing it. ;-)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hi,
I spotted a wrong sql-query with a missing query-builder-expression here:
blog/Classes/Routing/Aspect/StaticDatabaseMapper.php
Line 144 in 243fa31
Current:
$queryBuilder->andWhere($key, $queryBuilder->createNamedParameter($value));
leads to SELECT
crdate_year
FROMpages
WHERE (doktype) AND (:dcValue1) AND...and results in
0
2017
2018
2019
2020
2021
2022
Wanted:
$queryBuilder->andWhere($queryBuilder->expr()->eq($key, $queryBuilder->createNamedParameter($value)));
leads to SELECT
crdate_year
FROMpages
WHERE (doktype
= :dcValue1) AND...and results in
2019
2020
2021
2022
So it's just 1 line for fixing it. ;-)
The text was updated successfully, but these errors were encountered: