1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix a problem with the CARRAY extension when the SQLITE_TRANSIENT destructor

is used for non-text arrays.
[forum:/forumpost/48e525b266|Forum thread 48e525b266].

FossilOrigin-Name: cac910c15f409c5358843643b2f90252eb90328b9e5ff84cedbccb604d9891af
This commit is contained in:
drh
2021-10-20 13:48:12 +00:00
parent 7132f4361b
commit dec8572d8a
4 changed files with 41 additions and 9 deletions

View File

@ -464,7 +464,7 @@ SQLITE_API int sqlite3_carray_bind(
z += n+1;
}
}else{
memcpy(pNew->aData, aData, sz*nData);
memcpy(pNew->aData, aData, sz);
}
pNew->xDel = sqlite3_free;
}else{