Open Juddling opened 5 years ago
I'm trying to run a whereHas where one model lives in one database, and the pivot and the other model lives in another database.
whereHas
Although your package correctly detects the connections are different, and alters the query, I believe Postgres itself doesn't support this behaviour:
SQLSTATE[0A000]: Feature not supported: 7 ERROR: cross-database references are not implemented
This two database are in different server or have another credentials?
Same server, same user in fact.
Description:
I'm trying to run a
whereHas
where one model lives in one database, and the pivot and the other model lives in another database.Although your package correctly detects the connections are different, and alters the query, I believe Postgres itself doesn't support this behaviour: