OLD | NEW |
---|---|
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 Loading... | |
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 ){ |
wtc
2013/05/08 22:39:27
Did you notice that he changed some string compari
Scott Hess - ex-Googler
2013/05/08 22:56:51
Yeah. I don't think it will matter to any of our
| |
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 Loading... | |
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 */ |
OLD | NEW |