JSON support.

This commit is contained in:
Nuno Cruces
2023-10-18 23:14:46 +01:00
parent 61da30f44a
commit d60fceac92
6 changed files with 134 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ func (s *Stmt) BindJSON(param int, value any) error {
r := s.c.call(s.c.api.bindText,
uint64(s.handle), uint64(param),
uint64(ptr), uint64(len(data)),
uint64(s.c.api.destructor))
uint64(s.c.api.destructor), _UTF8)
return s.c.error(r)
}