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

Got "Could not get cors config from DB" error in error log when using with PostgreSQL #17

Open
ethan-ho opened this issue Jul 6, 2016 · 0 comments

Comments

@ethan-ho
Copy link

ethan-ho commented Jul 6, 2016

See following error generated for every request:

local.ALERT: Could not get cors config from DB - SQLSTATE[42883]: Undefined function: 7 ERROR:  operator does not exist: boolean = integer
LINE 1: select * from "cors_config" where enabled = 1
                                                  ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts. (SQL: select * from "cors_config" where enabled = 1)  

I believe it's related to whereRaw('enabled = 1') in original code.
But the enabled field is actually a boolean type, which triggered type mismatch error during query.

@ethan-ho ethan-ho changed the title "Could not get cors config from DB" error when using PostgreSQL Got "Could not get cors config from DB" error in error log when using with PostgreSQL Jul 6, 2016
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