diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2024-01-25 22:36:00 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2024-01-25 22:55:22 +0900 |
commit | c91bca4fb499831d1bf62fb2b3019338d5a3eb41 (patch) | |
tree | eb8952f7b7c394790c620a65c20c74189f1fcb47 /sqlite3_opt_preupdate_hook.go | |
parent | Fix musl build (#1164) (diff) | |
download | golite-c91bca4fb499831d1bf62fb2b3019338d5a3eb41.tar.gz golite-c91bca4fb499831d1bf62fb2b3019338d5a3eb41.tar.xz |
update go version to 1.19
Diffstat (limited to 'sqlite3_opt_preupdate_hook.go')
-rw-r--r-- | sqlite3_opt_preupdate_hook.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sqlite3_opt_preupdate_hook.go b/sqlite3_opt_preupdate_hook.go index b43e482..9cd0964 100644 --- a/sqlite3_opt_preupdate_hook.go +++ b/sqlite3_opt_preupdate_hook.go @@ -54,10 +54,10 @@ func (d *SQLitePreUpdateData) Count() int { return int(C.sqlite3_preupdate_count(d.Conn.db)) } -func (d *SQLitePreUpdateData) row(dest []interface{}, new bool) error { +func (d *SQLitePreUpdateData) row(dest []any, new bool) error { for i := 0; i < d.Count() && i < len(dest); i++ { var val *C.sqlite3_value - var src interface{} + var src any // Initially I tried making this just a function pointer argument, but // it's absurdly complicated to pass C function pointers. @@ -95,7 +95,7 @@ func (d *SQLitePreUpdateData) row(dest []interface{}, new bool) error { // Old populates dest with the row data to be replaced. This works similar to // database/sql's Rows.Scan() -func (d *SQLitePreUpdateData) Old(dest ...interface{}) error { +func (d *SQLitePreUpdateData) Old(dest ...any) error { if d.Op == SQLITE_INSERT { return errors.New("There is no old row for INSERT operations") } @@ -104,7 +104,7 @@ func (d *SQLitePreUpdateData) Old(dest ...interface{}) error { // New populates dest with the replacement row data. This works similar to // database/sql's Rows.Scan() -func (d *SQLitePreUpdateData) New(dest ...interface{}) error { +func (d *SQLitePreUpdateData) New(dest ...any) error { if d.Op == SQLITE_DELETE { return errors.New("There is no new row for DELETE operations") } |