/ Check-in [313e990c]
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:Remove an unreachable branch in the UNIQUE constraint parsing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 313e990c741d7db082f1d9b9f3f4c65fdd91b812
User & Date: drh 2016-06-04 13:57:41
Context
2016-06-04
16:33
Fix up speedtest1.c so that it will compile and run on SQLite versions prior to 3.6.18 (circa 2009-09-11). check-in: 9583c0fb user: drh tags: trunk
13:57
Remove an unreachable branch in the UNIQUE constraint parsing. check-in: 313e990c user: drh tags: trunk
2016-06-03
18:59
The OR optimization is usable on virtual tables with LIKE, REGEXP and/or GLOB terms in the WHERE clause. check-in: fa3a89fc user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  3283   3283       }
  3284   3284     }
  3285   3285   
  3286   3286     /* Link the new Index structure to its table and to the other
  3287   3287     ** in-memory database structures. 
  3288   3288     */
  3289   3289     assert( pParse->nErr==0 );
  3290         -  if( db->init.busy && !IN_DECLARE_VTAB ){
         3290  +  if( db->init.busy ){
  3291   3291       Index *p;
         3292  +    assert( !IN_DECLARE_VTAB );
  3292   3293       assert( sqlite3SchemaMutexHeld(db, 0, pIndex->pSchema) );
  3293   3294       p = sqlite3HashInsert(&pIndex->pSchema->idxHash, 
  3294   3295                             pIndex->zName, pIndex);
  3295   3296       if( p ){
  3296   3297         assert( p==pIndex );  /* Malloc must have failed */
  3297   3298         sqlite3OomFault(db);
  3298   3299         goto exit_create_index;