mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Merge recent trunk enhancements into the begin-concurrent branch.
FossilOrigin-Name: 7fff0803351b4236f69c20586722c5ee160a002ba8b857e81d6574ea3f65e34d
This commit is contained in:
@@ -1631,7 +1631,9 @@ int sqlite3session_diff(
|
||||
}
|
||||
sqlite3_free((char*)azCol);
|
||||
if( bMismatch ){
|
||||
*pzErrMsg = sqlite3_mprintf("table schemas do not match");
|
||||
if( pzErrMsg ){
|
||||
*pzErrMsg = sqlite3_mprintf("table schemas do not match");
|
||||
}
|
||||
rc = SQLITE_SCHEMA;
|
||||
}
|
||||
if( bHasPk==0 ){
|
||||
@@ -1837,7 +1839,7 @@ int sqlite3session_attach(
|
||||
** set *pRc to SQLITE_NOMEM and return non-zero.
|
||||
*/
|
||||
static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){
|
||||
if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
|
||||
if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
|
||||
u8 *aNew;
|
||||
i64 nNew = p->nAlloc ? p->nAlloc : 128;
|
||||
do {
|
||||
|
Reference in New Issue
Block a user