aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/prepare.c4
-rw-r--r--src/sqlite.h.in2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/prepare.c b/src/prepare.c
index cd90bc4ba..1e7a1222b 100644
--- a/src/prepare.c
+++ b/src/prepare.c
@@ -746,7 +746,9 @@ static int sqlite3Prepare(
}
}
- sqlite3VtabUnlockList(db);
+#ifndef SQLITE_OMIT_VIRTUALTABLE
+ if( db->pDisconnect ) sqlite3VtabUnlockList(db);
+#endif
if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
char *zSqlCopy;
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index d862c4fc0..df61f3c19 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -5628,7 +5628,7 @@ void sqlite3_value_free(sqlite3_value*);
**
** ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer
** when first called if N is less than or equal to zero or if a memory
-** allocate error occurs.
+** allocation error occurs.
**
** ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is
** determined by the N parameter on first successful call. Changing the