Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/sqlite/src/src/build.c

Issue 15070002: Backport SQLite memcmp patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary variable. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/src/analyze.c ('k') | third_party/sqlite/src/src/expr.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2001 September 15 2 ** 2001 September 15
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 assert( pName==0 ); 2473 assert( pName==0 );
2474 pTab = pParse->pNewTable; 2474 pTab = pParse->pNewTable;
2475 if( !pTab ) goto exit_create_index; 2475 if( !pTab ) goto exit_create_index;
2476 iDb = sqlite3SchemaToIndex(db, pTab->pSchema); 2476 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
2477 } 2477 }
2478 pDb = &db->aDb[iDb]; 2478 pDb = &db->aDb[iDb];
2479 2479
2480 assert( pTab!=0 ); 2480 assert( pTab!=0 );
2481 assert( pParse->nErr==0 ); 2481 assert( pParse->nErr==0 );
2482 if( sqlite3StrNICmp(pTab->zName, "sqlite_", 7)==0 2482 if( sqlite3StrNICmp(pTab->zName, "sqlite_", 7)==0
2483 && memcmp(&pTab->zName[7],"altertab_",9)!=0 ){ 2483 && sqlite3StrNICmp(&pTab->zName[7],"altertab_",9)!=0 ){
2484 sqlite3ErrorMsg(pParse, "table %s may not be indexed", pTab->zName); 2484 sqlite3ErrorMsg(pParse, "table %s may not be indexed", pTab->zName);
2485 goto exit_create_index; 2485 goto exit_create_index;
2486 } 2486 }
2487 #ifndef SQLITE_OMIT_VIEW 2487 #ifndef SQLITE_OMIT_VIEW
2488 if( pTab->pSelect ){ 2488 if( pTab->pSelect ){
2489 sqlite3ErrorMsg(pParse, "views may not be indexed"); 2489 sqlite3ErrorMsg(pParse, "views may not be indexed");
2490 goto exit_create_index; 2490 goto exit_create_index;
2491 } 2491 }
2492 #endif 2492 #endif
2493 #ifndef SQLITE_OMIT_VIRTUALTABLE 2493 #ifndef SQLITE_OMIT_VIRTUALTABLE
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3778 rc = sqlite3PagerLoadall(pPager); 3778 rc = sqlite3PagerLoadall(pPager);
3779 if (rc == SQLITE_OK) 3779 if (rc == SQLITE_OK)
3780 dbsLoaded++; 3780 dbsLoaded++;
3781 } 3781 }
3782 } 3782 }
3783 if (dbsLoaded == 0) 3783 if (dbsLoaded == 0)
3784 return SQLITE_ERROR; 3784 return SQLITE_ERROR;
3785 return SQLITE_OK; 3785 return SQLITE_OK;
3786 } 3786 }
3787 /* End preload-cache.patch for Chromium */ 3787 /* End preload-cache.patch for Chromium */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/analyze.c ('k') | third_party/sqlite/src/src/expr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698