Fix USING TIMEOUT time generation (#299)
Scylla does not support fractions. We need to make sure that time is formatted the following way: XmYsZms
This commit is contained in:
@@ -94,7 +94,7 @@ func (u *using) writeCql(cql *bytes.Buffer) (names []string) {
|
||||
|
||||
if u.timeout != 0 {
|
||||
writePreamble(cql)
|
||||
fmt.Fprintf(cql, "TIMEOUT %s ", u.timeout)
|
||||
fmt.Fprintf(cql, "TIMEOUT %s ", formatDuration(u.timeout))
|
||||
} else if u.timeoutName != "" {
|
||||
writePreamble(cql)
|
||||
cql.WriteString("TIMEOUT ? ")
|
||||
|
||||
Reference in New Issue
Block a user