Reset FROM clause list before new values are set.
This commit is contained in:
parent
17e5e34111
commit
caa81930dc
2 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ func (s *selectStatementImpl) DISTINCT() SelectStatement {
|
|||
}
|
||||
|
||||
func (s *selectStatementImpl) FROM(tables ...ReadableTable) SelectStatement {
|
||||
s.From.Tables = nil
|
||||
for _, table := range tables {
|
||||
s.From.Tables = append(s.From.Tables, table)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ func (s *selectStatementImpl) DISTINCT() SelectStatement {
|
|||
}
|
||||
|
||||
func (s *selectStatementImpl) FROM(tables ...ReadableTable) SelectStatement {
|
||||
s.From.Tables = nil
|
||||
for _, table := range tables {
|
||||
s.From.Tables = append(s.From.Tables, table)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue