/ Check-in [cda33c1e]
Login

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

Overview
Comment:Suppress the potential schema error that occurs when a non-user-auth SQLite library tries to parse the sqlite_user table definition in a user-auth database.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | user-auth
Files: files | file ages | folders
SHA1: cda33c1ef35416a155af602c0b4e9d42ccf8633f
User & Date: drh 2014-09-11 16:36:43
Context
2014-09-11
17:14
Clean up some #includes in the extension API implementation. Closed-Leaf check-in: b149ef5c user: drh tags: user-auth
16:36
Suppress the potential schema error that occurs when a non-user-auth SQLite library tries to parse the sqlite_user table definition in a user-auth database. check-in: cda33c1e user: drh tags: user-auth
16:19
Enhance the sqlite3_user_add() interface to initialize the user authentication logic. Add test cases for the extra argument on the end of the authorizer callback. check-in: 842c6da8 user: drh tags: user-auth
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/build.c.

  2897   2897       iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
  2898   2898     }
  2899   2899     pDb = &db->aDb[iDb];
  2900   2900   
  2901   2901     assert( pTab!=0 );
  2902   2902     assert( pParse->nErr==0 );
  2903   2903     if( sqlite3StrNICmp(pTab->zName, "sqlite_", 7)==0 
         2904  +       && db->init.busy==0
  2904   2905   #if SQLITE_USER_AUTHENTICATION
  2905   2906          && sqlite3UserAuthTable(pTab->zName)==0
  2906   2907   #endif
  2907   2908          && sqlite3StrNICmp(&pTab->zName[7],"altertab_",9)!=0 ){
  2908   2909       sqlite3ErrorMsg(pParse, "table %s may not be indexed", pTab->zName);
  2909   2910       goto exit_create_index;
  2910   2911     }