go-gorm / go-gorm/dbresolver

WITH statement is not querying from replica

Open
#106 0 comments 0 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
538
Forks
69
PR merge metrics
No merged PRs in 30d

Description

## 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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.