-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
BUG whereIn When PK != integer [HELP] #26603
Comments
I just tried the same, but using a mysql database instead of PostgreSql, and it ran successfully. https://stackoverflow.com/questions/46433459/postgres-select-where-the-where-is-uuid-or-string In the stackoverflow page they stated casting the column to uuid helped: |
But because in the version of laravel 5.7.13 it works normally and in version 5.7.14 it does not? Would it be a database error? |
Also, there's a note in the documentation:
|
@bonzai, wow! Thank you very much guy. |
Description:
Hi guys,
I am developing a project where the requesting company asked for the table identifiers to be uuid (as much as I did not agree), so in my models I configured it like this
This worked until version 5.7.13, but now in 5.7.14 is giving the error
SQLSTATE [42883]: Undefined function: 7 ERROR: operator does not exist: uuid = integer
How can I get around this?
Thank you
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: