Closed smuuf closed 3 years ago
Thanks
Hi @smuuf and @dg
We just found problematic case here with subqueries:
$table('table_a')
->where(
'table_a.column_one IN',
$table('table_b')->select('value')->limit(100)
)
Adding limit to subquery throws error:
This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
Mysql doc https://dev.mysql.com/doc/refman/8.0/en/subquery-restrictions.html reads:
MySQL does not support LIMIT in subqueries for certain subquery operators
I temporarily reverted it until we found a solution.
As MySQL/MariaDB clearly does support subqueries.
This enables proper building of queries like...
... without executing the inner query first.
See https://dev.mysql.com/doc/refman/8.0/en/subqueries.html and https://mariadb.com/kb/en/subqueries/