Don't merge clause From

This commit is contained in:
Jinzhu
2020-07-15 10:25:10 +08:00
parent 1f05cb7e55
commit 72a64bef11
2 changed files with 11 additions and 15 deletions
-4
View File
@@ -33,9 +33,5 @@ func (from From) Build(builder Builder) {
// MergeClause merge from clause
func (from From) MergeClause(clause *Clause) {
if v, ok := clause.Expression.(From); ok {
from.Tables = append(v.Tables, from.Tables...)
from.Joins = append(v.Joins, from.Joins...)
}
clause.Expression = from
}