diff options
author | drh <drh@noemail.net> | 2020-07-24 13:49:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-07-24 13:49:38 +0000 |
commit | 25a78fdfa23008b2a97a99ccba71c964523eeb03 (patch) | |
tree | e2dc0cceb77b804ee7d6a41907d5d2cc65b93ed4 /src | |
parent | b140347395ef091cdafba49cffdc0360134c91c4 (diff) | |
parent | 8adc8f1ecb394f2780bfcc1507671424c753e6fa (diff) | |
download | sqlite-25a78fdfa23008b2a97a99ccba71c964523eeb03.tar.gz sqlite-25a78fdfa23008b2a97a99ccba71c964523eeb03.zip |
Merge recent changes from trunk.
FossilOrigin-Name: 22e8e6901a119698de831ede6d8b03c4fd6576eaa8686a97a0b8aeea7593688a
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/memdb.c | 2 | ||||
-rw-r--r-- | src/memjournal.c | 4 | ||||
-rw-r--r-- | src/os_unix.c | 2 | ||||
-rw-r--r-- | src/os_win.c | 2 | ||||
-rw-r--r-- | src/test_multiplex.c | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c index c25972f48..52d905d0f 100644 --- a/src/main.c +++ b/src/main.c @@ -100,7 +100,7 @@ static int (*const sqlite3BuiltinExtensions[])(sqlite3*) = { #ifndef SQLITE_AMALGAMATION /* IMPLEMENTATION-OF: R-46656-45156 The sqlite3_version[] string constant -** contains the text of SQLITE_VERSION macro. +** contains the text of SQLITE_VERSION macro. */ const char sqlite3_version[] = SQLITE_VERSION; #endif diff --git a/src/memdb.c b/src/memdb.c index 9edbef157..dc969a47e 100644 --- a/src/memdb.c +++ b/src/memdb.c @@ -339,7 +339,7 @@ static int memdbOpen( p->mFlags = SQLITE_DESERIALIZE_RESIZEABLE | SQLITE_DESERIALIZE_FREEONCLOSE; assert( pOutFlags!=0 ); /* True because flags==SQLITE_OPEN_MAIN_DB */ *pOutFlags = flags | SQLITE_OPEN_MEMORY; - p->base.pMethods = &memdb_io_methods; + pFile->pMethods = &memdb_io_methods; p->szMax = sqlite3GlobalConfig.mxMemdbSize; return SQLITE_OK; } diff --git a/src/memjournal.c b/src/memjournal.c index 0a14e847a..4811f2d8d 100644 --- a/src/memjournal.c +++ b/src/memjournal.c @@ -366,7 +366,7 @@ int sqlite3JournalOpen( assert( MEMJOURNAL_DFLT_FILECHUNKSIZE==fileChunkSize(p->nChunkSize) ); } - p->pMethod = (const sqlite3_io_methods*)&MemJournalMethods; + pJfd->pMethods = (const sqlite3_io_methods*)&MemJournalMethods; p->nSpill = nSpill; p->flags = flags; p->zJournal = zName; @@ -392,7 +392,7 @@ void sqlite3MemJournalOpen(sqlite3_file *pJfd){ int sqlite3JournalCreate(sqlite3_file *pJfd){ int rc = SQLITE_OK; MemJournal *p = (MemJournal*)pJfd; - if( p->pMethod==&MemJournalMethods && ( + if( pJfd->pMethods==&MemJournalMethods && ( #ifdef SQLITE_ENABLE_ATOMIC_WRITE p->nSpill>0 #else diff --git a/src/os_unix.c b/src/os_unix.c index 3571f3f2c..fc5415333 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5692,7 +5692,7 @@ static int fillInUnixFile( if( rc!=SQLITE_OK ){ if( h>=0 ) robust_close(pNew, h, __LINE__); }else{ - pNew->pMethod = pLockingStyle; + pId->pMethods = pLockingStyle; OpenCounter(+1); verifyDbFile(pNew); } diff --git a/src/os_win.c b/src/os_win.c index a03f3bfab..1f22fd992 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -5266,7 +5266,7 @@ static int winOpen( } sqlite3_free(zTmpname); - pFile->pMethod = pAppData ? pAppData->pMethod : &winIoMethod; + id->pMethods = pAppData ? pAppData->pMethod : &winIoMethod; pFile->pVfs = pVfs; pFile->h = h; if( isReadonly ){ diff --git a/src/test_multiplex.c b/src/test_multiplex.c index cda83fd81..5ef1ec183 100644 --- a/src/test_multiplex.c +++ b/src/test_multiplex.c @@ -591,9 +591,9 @@ static int multiplexOpen( if( rc==SQLITE_OK ){ if( pSubOpen->pMethods->iVersion==1 ){ - pMultiplexOpen->base.pMethods = &gMultiplex.sIoMethodsV1; + pConn->pMethods = &gMultiplex.sIoMethodsV1; }else{ - pMultiplexOpen->base.pMethods = &gMultiplex.sIoMethodsV2; + pConn->pMethods = &gMultiplex.sIoMethodsV2; } }else{ multiplexFreeComponents(pGroup); |