mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Calling sqlite3_value_dup() on a pointer value results in an ordinary
NULL. [forum:/forumpost/ae8592cc73|Forum post ae8592cc73]. Test cases in TH3. FossilOrigin-Name: fff1243b594c190d15f14b7ca4e60d23519cd15134f275991c685966fcc24145
This commit is contained in:
@@ -345,6 +345,9 @@ sqlite3_value *sqlite3_value_dup(const sqlite3_value *pOrig){
|
||||
sqlite3ValueFree(pNew);
|
||||
pNew = 0;
|
||||
}
|
||||
}else if( pNew->flags & MEM_Null ){
|
||||
/* Do not duplicate pointer values */
|
||||
pNew->flags &= ~(MEM_Term|MEM_Subtype);
|
||||
}
|
||||
return pNew;
|
||||
}
|
||||
|
Reference in New Issue
Block a user