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

Temporary fix contacts search #20720

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

nickvergessen
Copy link
Member

Regression from #18816 resulting in:

SQLSTATE[42000]: Syntax error or access violation: 1235 This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'

Signed-off-by: Joas Schilling <[email protected]>
Copy link
Member

@georgehrke georgehrke left a comment

Choose a reason for hiding this comment

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

Makes sense for now 👍

@J0WI
Copy link
Contributor

J0WI commented Apr 29, 2020

See #18816 (comment)

@rullzer
Copy link
Member

rullzer commented Apr 30, 2020

@J0WI could you shoot in a PR for that. Then we could get that in early in the 20 cycle.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

🐘

@rullzer rullzer merged commit 2df57b2 into master Apr 30, 2020
@rullzer rullzer deleted the bugfix/noid/temporary-fix-contacts-search branch April 30, 2020 06:52
@J0WI
Copy link
Contributor

J0WI commented May 5, 2020

@J0WI could you shoot in a PR for that. Then we could get that in early in the 20 cycle.

@rullzer I haven't figured out how to build the SELECT `cardid` FROM (...) AS compatlayer subquery in DBAL.

@J0WI
Copy link
Contributor

J0WI commented May 5, 2020

I can provide something using plain SQL:

+$sql = 'SELECT `cardid` FROM ( ' . $query2->getSQL() . ' ) AS `mysql_compatlayer`';
 $query->select('c.carddata', 'c.uri')->from($this->dbCardsTable, 'c')
-->where($query->expr()->in('c.id', $query->createFunction($query2->getSQL())));
+->where($query->expr()->in('c.id', $query->createFunction($sql)));

@J0WI
Copy link
Contributor

J0WI commented May 28, 2020

@rullzer @nickvergessen If you're fine with the soultion described in #20720 (comment) I'll open a PR

@nickvergessen
Copy link
Member Author

Sorry, didn't see your comment before @J0WI
I have a patch at #21221 already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants