You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just updated Datatables because I updated Laravel and now it's broken:
Exception Message:
SQLSTATE[HY093]: Invalid parameter number (SQL: select count(*) as aggregate from (select '1' as `row_count` from (select `customers`.*, (select COUNT(`id`) from `orders` where `orders`.`customer_id` = `customers`.`id` and `ordered_at` between Alkmaar and 4) as `order_count_2017` from `customers`) as t where `city` = ? and `order_count_2017` = ?) count_row_table)
After some digging this is causing it: #1730. It removes my select bindings. As you can see in the error my "where bindings" are used for the "select bindings".
All of this is needed so I can do a "where" on my subselect. This is needed because "having" isn't supported. Can we revert #1730 and find another solution for that? Just removing all select bindings isn't the solution @fschalkwijk and @yajra...
The text was updated successfully, but these errors were encountered:
Just updated Datatables because I updated Laravel and now it's broken:
After some digging this is causing it: #1730. It removes my select bindings. As you can see in the error my "where bindings" are used for the "select bindings".
The query I'm using:
All of this is needed so I can do a "where" on my subselect. This is needed because "having" isn't supported. Can we revert #1730 and find another solution for that? Just removing all select bindings isn't the solution @fschalkwijk and @yajra...
The text was updated successfully, but these errors were encountered: