Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit ac6ae0b

Browse files
committed
remove redundant codes
1 parent 3f1fac3 commit ac6ae0b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

builder_union.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,6 @@ func (b *Builder) unionWriteTo(w Writer) error {
3232
}
3333
fmt.Fprint(w, "(")
3434

35-
// switch b.dialect {
36-
// case ORACLE, MSSQL:
37-
// // if dialect is Oracle or Mssql, we need to make a copy of current context
38-
// // coz the result of current will turn into a sub-query when building LIMIT query
39-
// tw := NewWriter()
40-
// if err := current.selectWriteTo(tw); err != nil {
41-
// return err
42-
// }
43-
//
44-
// fmt.Fprintf(w, tw.writer.String())
45-
// w.(*BytesWriter).args = append(w.(*BytesWriter).args, tw.args...)
46-
// case MYSQL, SQLITE, POSTGRES:
47-
// if err := current.selectWriteTo(w); err != nil {
48-
// return err
49-
// }
50-
// default:
51-
// return ErrNotSupportType
52-
// }
53-
5435
if err := current.selectWriteTo(w); err != nil {
5536
return err
5637
}

0 commit comments

Comments
 (0)