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

ERROR: function field(bigint, integer) does not exist #5

Closed
legend6 opened this issue Feb 12, 2022 · 1 comment
Closed

ERROR: function field(bigint, integer) does not exist #5

legend6 opened this issue Feb 12, 2022 · 1 comment

Comments

@legend6
Copy link
Contributor

legend6 commented Feb 12, 2022

I encountered this error while using pgsql, but it works fine in mysql

this is the source of the problem, the field function is not found in pgsql
->orderByRaw("FIELD({$this->getKeyName()}, {$values_ordered})");

@legend6
Copy link
Contributor Author

legend6 commented Feb 13, 2022

solved using the case expression in pgsql

@legend6 legend6 closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant