/ Check-in [c640489d]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the SQLITE_USER_AUTHENTICATION login check so that the SQLITE_AUTH_USER error code correctly propagates and is not overwritten by SQLITE_ERROR.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c640489db2037f1a284d7b85fa753ccdac1b8f79
User & Date: drh 2016-08-23 14:42:15
Context
2016-08-24
18:21
Sync up the MSVC autoconf makefile. check-in: 77f7c31a user: mistachkin tags: trunk
2016-08-23
14:42
Fix the SQLITE_USER_AUTHENTICATION login check so that the SQLITE_AUTH_USER error code correctly propagates and is not overwritten by SQLITE_ERROR. check-in: c640489d user: drh tags: trunk
2016-08-22
20:10
Add support for the SQLITE_DBCONFIG_MAINDBNAME configuration option. check-in: 78395193 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

   149    149       while( sqlite3VdbeDeletePriorOpcode(v, OP_Close) ){}
   150    150       sqlite3VdbeAddOp0(v, OP_Halt);
   151    151   
   152    152   #if SQLITE_USER_AUTHENTICATION
   153    153       if( pParse->nTableLock>0 && db->init.busy==0 ){
   154    154         sqlite3UserAuthInit(db);
   155    155         if( db->auth.authLevel<UAUTH_User ){
   156         -        pParse->rc = SQLITE_AUTH_USER;
   157    156           sqlite3ErrorMsg(pParse, "user not authenticated");
          157  +        pParse->rc = SQLITE_AUTH_USER;
   158    158           return;
   159    159         }
   160    160       }
   161    161   #endif
   162    162   
   163    163       /* The cookie mask contains one bit for each database file open.
   164    164       ** (Bit 0 is for main, bit 1 is for temp, and so forth.)  Bits are