This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ext/session/sqlite3session.c | |
================================================================== | |
--- ext/session/sqlite3session.c | |
+++ ext/session/sqlite3session.c | |
@@ -1977,11 +1977,20 @@ | |
static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){ | |
if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){ | |
u8 *aNew; | |
i64 nNew = p->nAlloc ? p->nAlloc : 128; | |
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "sqlite3.h" | |
// gcc -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK main.c sqlite3.c -o foo | |
int main() { | |
sqlite3 *db; | |
sqlite3_session *pSession; | |
int rc; | |
// changeset |