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

Update the carray() and remember() extension functions so that they user

the new sqlite3_value_pointer() interface.

FossilOrigin-Name: a99fa94db7185b8eaf3c9b184cb1479f8b3d5781f71f1717a4b3f2dd1d184fe4
This commit is contained in:
drh
2017-06-30 23:46:16 +00:00
parent 3a96a5d919
commit 3561dd4afe
5 changed files with 70 additions and 38 deletions

View File

@ -44,11 +44,11 @@ static void rememberFunc(
sqlite3_value **argv
){
sqlite3_int64 v;
sqlite3_int64 ptr;
sqlite3_int64 *ptr;
assert( argc==2 );
v = sqlite3_value_int64(argv[0]);
ptr = sqlite3_value_int64(argv[1]);
*((sqlite3_int64*)ptr) = v;
ptr = sqlite3_value_pointer(argv[1]);
if( ptr ) *ptr = v;
sqlite3_result_int64(pCtx, v);
}