aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-12-19 16:26:05 +0000
committerdrh <drh@noemail.net>2013-12-19 16:26:05 +0000
commitf6b1a8e1a58aa577e35224d534b9e2cb5ee8d75b (patch)
treee3be05b09fa7c5ae763f63bcba582431e3585d3c /src
parenta021f121c96a5fe4a1176f30a257b5fe8eb3d2d5 (diff)
downloadsqlite-f6b1a8e1a58aa577e35224d534b9e2cb5ee8d75b.tar.gz
sqlite-f6b1a8e1a58aa577e35224d534b9e2cb5ee8d75b.zip
Make sure errors encountered while initializing extensions such as FTS4
get reported out from sqlite3_open(). This fixes a bug introduced by check-in [9d347f547e7ba9]. Also remove lots of forgotten "breakpoint" commands left in test scripts over the years. FossilOrigin-Name: ca3fdfd41961d8d3d1e39d20dc628e8a95dabb2f
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 32e4dee7f..d181d6fa0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2641,6 +2641,8 @@ static int openDatabase(
SQLITE_DEFAULT_LOCKING_MODE);
#endif
+ if( rc ) sqlite3Error(db, rc, 0);
+
/* Enable the lookaside-malloc subsystem */
setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside,
sqlite3GlobalConfig.nLookaside);