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 wanted a way to show certain rows before other. This change seems to make it possibile, dunno about collateral effects, for my case is ok.
if (isset($where['ORDER'])) { $order = $where['ORDER']; if (is_array($order)) { $stack = []; foreach ($order as $column => $value) { if (is_array($value)) { $valueStack = []; foreach ($value as $item) { $valueStack[] = is_int($item) ? $item : $this->quote($item); } $valueString = implode(',', $valueStack); $stack[] = "FIELD({$this->columnQuote($column)}, {$valueString})"; } elseif ($value === 'ASC' || $value === 'DESC') { $stack[] = $this->columnQuote($column) . ' ' . $value; } elseif (is_int($column)) { $stack[] = $this->columnQuote($value); } } $clause .= ' ORDER BY ' . implode(',', $stack); } elseif ($raw = $this->buildRaw($order, $map)) { $clause .= ' ORDER BY ' . $raw; } else { $clause .= ' ORDER BY ' . $this->columnQuote($order); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I wanted a way to show certain rows before other.
This change seems to make it possibile, dunno about collateral effects, for my case is ok.
The text was updated successfully, but these errors were encountered: