-
Hi, This is my first thread ever here. I have recently switched to Postgres with Laravel to handle a much heavier database.
Steps to reproduce:
Now try to use something that is not an integer you will get a QueryException, example Seems to be also trigered when you try something like Switching to MySQL Driver does not reproduce the issue, it simply runs the query and I get empty collection as expected. PHP Version 8.1.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The query exception comes from PostgreSQL, not from laravel, laravel builds the query like normally do |
Beta Was this translation helpful? Give feedback.
The query exception comes from PostgreSQL, not from laravel, laravel builds the query like normally do
It is a PostgreSQL intended behaviour to avoid mixing data types