remove prepared statement
This commit is contained in:
parent
a49301e826
commit
51d3473c17
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