Setting _time_format prevents use of _txlock
When the _time_format
query parameter is present, applyQueryParams
returns early, preventing the _txlock
parameter from being processed.
Removing L837 (return nil
) from sqlite.go (master / v1.20.3) should fix this.
https://gitlab.com/cznic/sqlite/-/blob/master/sqlite.go#L831
if v := q.Get("_time_format"); v != "" {
f, ok := writeTimeFormats[v]
if !ok {
return fmt.Errorf("unknown _time_format %q", v)
}
c.writeTimeFormat = f
return nil // <-- PROBLEM LINE
}
if v := q.Get("_txlock"); v != "" {