fix using timeout order in select stmt
This commit is contained in:
committed by
Michal Jan Matczuk
parent
25d81de30e
commit
c965fdf183
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user