dbresolver
dbresolver copied to clipboard
WITH statement is not querying from replica
GORM Playground Link
https://github.com/go-gorm/playground/pull/1
Description
Hi, i'm trying to use WITH statement, and expected it should query from replica database instead of source database
Here is an example
WITH alias_regions AS (
SELECT * FROM regions
)
SELECT * FROM alias_regions