Skip to content

Commit

Permalink
Correct SQLite function names
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolep committed Sep 6, 2022
1 parent 1d8534a commit b15a910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlite3.go
Expand Up @@ -918,7 +918,7 @@ func (c *SQLiteConn) Serialize(schema string) []byte {
defer C.free(unsafe.Pointer(zSchema))

var sz C.sqlite3_int64
ptr := C.sqlite3_serialize(c.db, zSchema, &sz, 0)
ptr := C.serialize(c.db, zSchema, &sz, 0)
if ptr == nil {
return nil
}
Expand All @@ -940,7 +940,7 @@ func (c *SQLiteConn) Deserialize(b []byte, schema string) error {
zSchema = C.CString(schema)
defer C.free(unsafe.Pointer(zSchema))

rc := C.sqlite3_deserialize(c.db, zSchema,
rc := C.deserialize(c.db, zSchema,
(*C.uint8_t)(unsafe.Pointer(&b[0])),
C.sqlite3_int64(len(b)), C.sqlite3_int64(len(b)), 0)
if rc != 0 {
Expand Down

0 comments on commit b15a910

Please sign in to comment.