summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/stmt.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-09-14 16:36:25 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-14 16:36:25 +0200
commit4fa0d412023ffdefc4ba63eecccd4b74e712ff7d (patch)
tree02ad2eb48c195eb52e22e6152909f45c7cae58f6 /vendor/github.com/ncruces/go-sqlite3/stmt.go
parent[feature/frontend] Add dark version of brutalist theme (#3294) (diff)
downloadgotosocial-4fa0d412023ffdefc4ba63eecccd4b74e712ff7d.tar.xz
[chore] Update go-sqlite3 to 0.18.3 (#3295)
* [chore] Update go-sqlite3 to 0.18.3 * [chore] Fix getting the sqlite3.Conn
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/stmt.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/stmt.go20
1 files changed, 8 insertions, 12 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/stmt.go b/vendor/github.com/ncruces/go-sqlite3/stmt.go
index 8e6ad2c10..e5d72465a 100644
--- a/vendor/github.com/ncruces/go-sqlite3/stmt.go
+++ b/vendor/github.com/ncruces/go-sqlite3/stmt.go
@@ -246,10 +246,9 @@ func (s *Stmt) BindText(param int, value string) error {
return TOOBIG
}
ptr := s.c.newString(value)
- r := s.c.call("sqlite3_bind_text64",
+ r := s.c.call("sqlite3_bind_text_go",
uint64(s.handle), uint64(param),
- uint64(ptr), uint64(len(value)),
- uint64(s.c.freer), _UTF8)
+ uint64(ptr), uint64(len(value)))
return s.c.error(r)
}
@@ -262,10 +261,9 @@ func (s *Stmt) BindRawText(param int, value []byte) error {
return TOOBIG
}
ptr := s.c.newBytes(value)
- r := s.c.call("sqlite3_bind_text64",
+ r := s.c.call("sqlite3_bind_text_go",
uint64(s.handle), uint64(param),
- uint64(ptr), uint64(len(value)),
- uint64(s.c.freer), _UTF8)
+ uint64(ptr), uint64(len(value)))
return s.c.error(r)
}
@@ -279,10 +277,9 @@ func (s *Stmt) BindBlob(param int, value []byte) error {
return TOOBIG
}
ptr := s.c.newBytes(value)
- r := s.c.call("sqlite3_bind_blob64",
+ r := s.c.call("sqlite3_bind_blob_go",
uint64(s.handle), uint64(param),
- uint64(ptr), uint64(len(value)),
- uint64(s.c.freer))
+ uint64(ptr), uint64(len(value)))
return s.c.error(r)
}
@@ -335,10 +332,9 @@ func (s *Stmt) bindRFC3339Nano(param int, value time.Time) error {
buf := util.View(s.c.mod, ptr, maxlen)
buf = value.AppendFormat(buf[:0], time.RFC3339Nano)
- r := s.c.call("sqlite3_bind_text64",
+ r := s.c.call("sqlite3_bind_text_go",
uint64(s.handle), uint64(param),
- uint64(ptr), uint64(len(buf)),
- uint64(s.c.freer), _UTF8)
+ uint64(ptr), uint64(len(buf)))
return s.c.error(r)
}