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

WITH statement is not querying from replica #106

Open
joefour opened this issue Jun 16, 2023 · 0 comments
Open

WITH statement is not querying from replica #106

joefour opened this issue Jun 16, 2023 · 0 comments
Assignees

Comments

@joefour
Copy link

joefour commented Jun 16, 2023

GORM Playground Link

go-gorm/playground#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
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

2 participants