diff options
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/driver')
| -rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/driver/driver.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/driver/driver.go b/vendor/github.com/ncruces/go-sqlite3/driver/driver.go index f473220c0..280611f71 100644 --- a/vendor/github.com/ncruces/go-sqlite3/driver/driver.go +++ b/vendor/github.com/ncruces/go-sqlite3/driver/driver.go @@ -546,8 +546,8 @@ func (s *stmt) setupBindings(args []driver.NamedValue) (err error) { err = s.Stmt.BindTime(id, a, s.tmWrite) case util.JSON: err = s.Stmt.BindJSON(id, a.Value) - case util.PointerUnwrap: - err = s.Stmt.BindPointer(id, util.UnwrapPointer(a)) + case util.Pointer: + err = s.Stmt.BindPointer(id, a.Value) case nil: err = s.Stmt.BindNull(id) default: @@ -565,7 +565,7 @@ func (s *stmt) CheckNamedValue(arg *driver.NamedValue) error { switch arg.Value.(type) { case bool, int, int64, float64, string, []byte, time.Time, sqlite3.ZeroBlob, - util.JSON, util.PointerUnwrap, + util.JSON, util.Pointer, nil: return nil default: |
