For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.
Suggestion to check for available joins: if (! empty($query->joins)) return rtrim($sql);
I really don't want to get into supporting every little vendor specific nook and cranny of each database. Let's just stick with the major pieces.
—
Sent from Mailbox for iPhone
On Sat, Nov 2, 2013 at 9:07 AM, Bryan te Beek ***@***.*** wrote:
This does not work in combination with multiple-table syntax.
See https://dev.mysql.com/doc/refman/5.0/en/update.html
For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.
Suggestion to check for available joins:
## `if (! empty($query->joins)) return rtrim($sql);`
Reply to this email directly or view it on GitHub:
d9d61e1#commitcomment-4494876
Any suggestion how we could adapt the grammar to our requirements?
We are doing a join on every request, so we don't want the mysql grammar to prepend these statements.
This comment has been minimized.
This does not work in combination with multiple-table syntax.
See https://dev.mysql.com/doc/refman/5.0/en/update.html
For the multiple-table syntax, UPDATE updates rows in each table named in table_references that satisfy the conditions. In this case, ORDER BY and LIMIT cannot be used.
Suggestion to check for available joins:
if (! empty($query->joins)) return rtrim($sql);
This comment has been minimized.
This comment has been minimized.
Any suggestion how we could adapt the grammar to our requirements?
We are doing a join on every request, so we don't want the mysql grammar to prepend these statements.