remove prepared statement
This commit is contained in:
parent
9c4d4aa037
commit
b09e915d9e
8
main.go
8
main.go
|
@ -43,13 +43,7 @@ func (db *TimelineDB) closestEvents(t int64, n uint, llimit int64, ulimit int64)
|
|||
limit ?
|
||||
`
|
||||
|
||||
stmt, err := db.Prepare(query)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer stmt.Close()
|
||||
|
||||
rows, err := stmt.Query(llimit, ulimit, t, n)
|
||||
rows, err := db.Query(query, llimit, ulimit, t, n)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue