1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Allow instruction OP_OpenDup to duplicate cursors created by OP_OpenDup, as well as by OP_OpenEphemeral.

FossilOrigin-Name: b8de980b2fb78088ef74e053cb987bb84319d13dc96ce1e89baaaa3fe8cf1efc
This commit is contained in:
dan
2021-03-18 13:42:53 +00:00
parent 176b04c476
commit 918232aadb
5 changed files with 26 additions and 15 deletions

View File

@@ -10705,6 +10705,14 @@ int sqlite3BtreeIsReadonly(Btree *p){
*/
int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }
/*
** Return the Btree object used to open the cursor provided as an
** argument.
*/
Btree *sqlite3BtreeGetBtree(BtCursor *pCsr){
return pCsr->pBtree;
}
#if !defined(SQLITE_OMIT_SHARED_CACHE)
/*
** Return true if the Btree passed as the only argument is sharable.