fix using timeout order in select stmt

This commit is contained in:
yemin.li
2022-03-23 18:32:12 -04:00
committed by Michal Jan Matczuk
parent 25d81de30e
commit c965fdf183
2 changed files with 5 additions and 4 deletions

View File

@@ -84,7 +84,6 @@ func (b *SelectBuilder) ToCql() (stmt string, names []string) {
cql.WriteString(b.table)
cql.WriteByte(' ')
names = append(names, b.using.writeCql(&cql)...)
names = append(names, b.where.writeCql(&cql)...)
if len(b.groupBy) > 0 {
@@ -110,6 +109,8 @@ func (b *SelectBuilder) ToCql() (stmt string, names []string) {
cql.WriteString("BYPASS CACHE ")
}
names = append(names, b.using.writeCql(&cql)...)
stmt = cql.String()
return
}