fix a wrong sql

`time.Now` is a function, it should be `time.Now()`
This commit is contained in:
Wenchao Hu 2017-03-27 22:35:58 +08:00 committed by GitHub
parent 93834ebf2e
commit 6f9aafa106

View File

@ -72,7 +72,7 @@ Run Raw SQL
```go ```go
db.Exec("DROP TABLE users;") db.Exec("DROP TABLE users;")
db.Exec("UPDATE orders SET shipped_at=? WHERE id IN (?)", time.Now, []int64{11,22,33}) db.Exec("UPDATE orders SET shipped_at=? WHERE id IN (?)", time.Now(), []int64{11,22,33})
// Scan // Scan
type Result struct { type Result struct {