| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | #include "sqliteInt.h" | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | static void corruptSchema( | - |
| 23 | InitData *pData, | - |
| 24 | const char *zObj, | - |
| 25 | const char *zExtra | - |
| 26 | ){ | - |
| 27 | sqlite3 *db = pData->db; | - |
| 28 | if( db->mallocFailed ){| TRUE | never evaluated | | FALSE | evaluated 44 times by 1 test |
| 0-44 |
| 29 | pData->rc = SQLITE_NOMEM_BKPT; | - |
| 30 | }else if( pData->pzErrMsg[0]!=0 ){ never executed: end of block | TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 31 | | - |
| 32 | }else if( pData->mInitFlags & INITFLAG_AlterTable ){executed 14 times by 1 test: end of block | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 28 times by 1 test |
| 2-28 |
| 33 | *pData->pzErrMsg = sqlite3DbStrDup(db, zExtra); | - |
| 34 | pData->rc = SQLITE_ERROR; | - |
| 35 | }else if( db->flags & SQLITE_WriteSchema ){executed 2 times by 1 test: end of block | TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 18 times by 1 test |
| 2-18 |
| 36 | pData->rc = SQLITE_CORRUPT_BKPT; | - |
| 37 | }else{executed 10 times by 1 test: end of block | 10 |
| 38 | char *z; | - |
| 39 | if( zObj==0 ) zObj = "?";executed 5 times by 1 test: zObj = "?"; | TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 13 times by 1 test |
| 5-13 |
| 40 | z = sqlite3MPrintf(db, "malformed database schema (%s)", zObj); | - |
| 41 | if( zExtra && zExtra[0] ) z = sqlite3MPrintf(db, "%z - %s", z, zExtra);executed 1 time by 1 test: z = sqlite3MPrintf(db, "%z - %s", z, zExtra); | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 17 times by 1 test |
| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-17 |
| 42 | *pData->pzErrMsg = z; | - |
| 43 | pData->rc = SQLITE_CORRUPT_BKPT; | - |
| 44 | }executed 18 times by 1 test: end of block | 18 |
| 45 | } | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 58 | | - |
| 59 | int sqlite3InitCallback(void *pInit, int argc, char **argv, char **NotUsed){ | - |
| 60 | InitData *pData = (InitData*)pInit; | - |
| 61 | sqlite3 *db = pData->db; | - |
| 62 | int iDb = pData->iDb; | - |
| 63 | | - |
| 64 | assert( argc==3 ); | - |
| 65 | UNUSED_PARAMETER2(NotUsed, argc); | - |
| 66 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 67 | DbClearProperty(db, iDb, DB_Empty); | - |
| 68 | if( db->mallocFailed ){| TRUE | never evaluated | | FALSE | evaluated 97288 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 0-97288 |
| 69 | corruptSchema(pData, argv[0], 0); | - |
| 70 | return 1; never executed: return 1; | 0 |
| 71 | } | - |
| 72 | | - |
| 73 | assert( iDb>=0 && iDb<db->nDb ); | - |
| 74 | if( argv==0 ) return 0; executed 2 times by 1 test: return 0; | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 97286 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 2-97286 |
| 75 | if( argv[1]==0 ){| TRUE | evaluated 13 times by 1 test | | FALSE | evaluated 97273 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 13-97273 |
| 76 | corruptSchema(pData, argv[0], 0); | - |
| 77 | }else if( sqlite3_strnicmp(argv[2],"create ",7)==0 ){executed 13 times by 1 test: end of block | TRUE | evaluated 92796 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 4477 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
| 13-92796 |
| 78 | | - |
| 79 | | - |
| 80 | | - |
| 81 | | - |
| 82 | | - |
| 83 | int rc; | - |
| 84 | u8 saved_iDb = db->init.iDb; | - |
| 85 | sqlite3_stmt *pStmt; | - |
| 86 | TESTONLY(int rcp); | - |
| 87 | | - |
| 88 | assert( db->init.busy ); | - |
| 89 | db->init.iDb = iDb; | - |
| 90 | db->init.newTnum = sqlite3Atoi(argv[1]); | - |
| 91 | db->init.orphanTrigger = 0; | - |
| 92 | TESTONLY(rcp = ) sqlite3_prepare(db, argv[2], -1, &pStmt, 0); | - |
| 93 | rc = db->errCode; | - |
| 94 | assert( (rc&0xFF)==(rcp&0xFF) ); | - |
| 95 | db->init.iDb = saved_iDb; | - |
| 96 | | - |
| 97 | if( SQLITE_OK!=rc ){| TRUE | evaluated 326 times by 1 test | | FALSE | evaluated 92470 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 326-92470 |
| 98 | if( db->init.orphanTrigger ){| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 322 times by 1 test |
| 4-322 |
| 99 | assert( iDb==1 ); | - |
| 100 | }else{executed 4 times by 1 test: end of block | 4 |
| 101 | pData->rc = rc; | - |
| 102 | if( rc==SQLITE_NOMEM ){| TRUE | evaluated 311 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 11-311 |
| 103 | sqlite3OomFault(db); | - |
| 104 | }else if( rc!=SQLITE_INTERRUPT && (rc&0xFF)!=SQLITE_LOCKED ){executed 311 times by 1 test: end of block | TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-311 |
| 105 | corruptSchema(pData, argv[0], sqlite3_errmsg(db)); | - |
| 106 | }executed 11 times by 1 test: end of block | 11 |
| 107 | }executed 322 times by 1 test: end of block | 322 |
| 108 | } | - |
| 109 | sqlite3_finalize(pStmt); | - |
| 110 | }else if( argv[0]==0 || (argv[2]!=0 && argv[2][0]!=0) ){executed 92796 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4476 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
| TRUE | evaluated 19 times by 1 test | | FALSE | evaluated 4457 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
| TRUE | evaluated 19 times by 1 test | | FALSE | never evaluated |
| 0-92796 |
| 111 | corruptSchema(pData, argv[0], 0); | - |
| 112 | }else{executed 20 times by 1 test: end of block | 20 |
| 113 | | - |
| 114 | | - |
| 115 | | - |
| 116 | | - |
| 117 | | - |
| 118 | | - |
| 119 | Index *pIndex; | - |
| 120 | pIndex = sqlite3FindIndex(db, argv[0], db->aDb[iDb].zDbSName); | - |
| 121 | if( pIndex==0 ){| TRUE | never evaluated | | FALSE | evaluated 4457 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
| 0-4457 |
| 122 | | - |
| 123 | | - |
| 124 | | - |
| 125 | | - |
| 126 | | - |
| 127 | ; | - |
| 128 | }else if( sqlite3GetInt32(argv[1], &pIndex->tnum)==0 ){ never executed: end of block | TRUE | never evaluated | | FALSE | evaluated 4457 times by 376 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
|
| 0-4457 |
| 129 | corruptSchema(pData, argv[0], "invalid rootpage"); | - |
| 130 | } never executed: end of block | 0 |
| 131 | }executed 4457 times by 376 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- Self test (123)
- Self test (124)
- Self test (125)
- ...
| 4457 |
| 132 | return 0;executed 97286 times by 436 tests: return 0;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 97286 |
| 133 | } | - |
| 134 | | - |
| 135 | | - |
| 136 | | - |
| 137 | | - |
| 138 | | - |
| 139 | | - |
| 140 | | - |
| 141 | | - |
| 142 | | - |
| 143 | int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg, u32 mFlags){ | - |
| 144 | int rc; | - |
| 145 | int i; | - |
| 146 | #ifndef SQLITE_OMIT_DEPRECATED | - |
| 147 | int size; | - |
| 148 | #endif | - |
| 149 | Db *pDb; | - |
| 150 | char const *azArg[4]; | - |
| 151 | int meta[5]; | - |
| 152 | InitData initData; | - |
| 153 | const char *zMasterName; | - |
| 154 | int openedTransaction = 0; | - |
| 155 | | - |
| 156 | assert( (db->mDbFlags & DBFLAG_SchemaKnownOk)==0 ); | - |
| 157 | assert( iDb>=0 && iDb<db->nDb ); | - |
| 158 | assert( db->aDb[iDb].pSchema ); | - |
| 159 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 160 | assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) ); | - |
| 161 | | - |
| 162 | db->init.busy = 1; | - |
| 163 | | - |
| 164 | | - |
| 165 | | - |
| 166 | | - |
| 167 | | - |
| 168 | | - |
| 169 | azArg[0] = zMasterName = SCHEMA_TABLE(iDb);| TRUE | evaluated 19276 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 21325 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 19276-21325 |
| 170 | azArg[1] = "1"; | - |
| 171 | azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text," | - |
| 172 | "rootpage int,sql text)"; | - |
| 173 | azArg[3] = 0; | - |
| 174 | initData.db = db; | - |
| 175 | initData.iDb = iDb; | - |
| 176 | initData.rc = SQLITE_OK; | - |
| 177 | initData.pzErrMsg = pzErrMsg; | - |
| 178 | initData.mInitFlags = mFlags; | - |
| 179 | sqlite3InitCallback(&initData, 3, (char **)azArg, 0); | - |
| 180 | if( initData.rc ){| TRUE | evaluated 240 times by 1 test | | FALSE | evaluated 40361 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 240-40361 |
| 181 | rc = initData.rc; | - |
| 182 | goto error_out;executed 240 times by 1 test: goto error_out; | 240 |
| 183 | } | - |
| 184 | | - |
| 185 | | - |
| 186 | | - |
| 187 | pDb = &db->aDb[iDb]; | - |
| 188 | if( pDb->pBt==0 ){| TRUE | evaluated 18219 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 22142 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 18219-22142 |
| 189 | assert( iDb==1 ); | - |
| 190 | DbSetProperty(db, 1, DB_SchemaLoaded); | - |
| 191 | rc = SQLITE_OK; | - |
| 192 | goto error_out;executed 18219 times by 435 tests: goto error_out;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 18219 |
| 193 | } | - |
| 194 | | - |
| 195 | | - |
| 196 | | - |
| 197 | | - |
| 198 | sqlite3BtreeEnter(pDb->pBt); | - |
| 199 | if( !sqlite3BtreeIsInReadTrans(pDb->pBt) ){| TRUE | evaluated 21500 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 642 times by 2 testsEvaluated by:- Self test (30)
- Self test (438)
|
| 642-21500 |
| 200 | rc = sqlite3BtreeBeginTrans(pDb->pBt, 0, 0); | - |
| 201 | if( rc!=SQLITE_OK ){| TRUE | evaluated 154 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
| | FALSE | evaluated 21346 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 154-21346 |
| 202 | sqlite3SetString(pzErrMsg, db, sqlite3ErrStr(rc)); | - |
| 203 | goto initone_error_out;executed 154 times by 2 tests: goto initone_error_out;Executed by:- Self test (438)
- Self test (61)
| 154 |
| 204 | } | - |
| 205 | openedTransaction = 1; | - |
| 206 | }executed 21346 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 21346 |
| 207 | | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | | - |
| 212 | | - |
| 213 | | - |
| 214 | | - |
| 215 | | - |
| 216 | | - |
| 217 | | - |
| 218 | | - |
| 219 | | - |
| 220 | | - |
| 221 | | - |
| 222 | | - |
| 223 | | - |
| 224 | | - |
| 225 | for(i=0; i<ArraySize(meta); i++){| TRUE | evaluated 109940 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 21988 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 21988-109940 |
| 226 | sqlite3BtreeGetMeta(pDb->pBt, i+1, (u32 *)&meta[i]); | - |
| 227 | }executed 109940 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 109940 |
| 228 | if( (db->flags & SQLITE_ResetDatabase)!=0 ){| TRUE | evaluated 13 times by 1 test | | FALSE | evaluated 21975 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 13-21975 |
| 229 | memset(meta, 0, sizeof(meta)); | - |
| 230 | }executed 13 times by 1 test: end of block | 13 |
| 231 | pDb->pSchema->schema_cookie = meta[BTREE_SCHEMA_VERSION-1]; | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | | - |
| 237 | | - |
| 238 | if( meta[BTREE_TEXT_ENCODING-1] ){ | TRUE | evaluated 16514 times by 422 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
| | FALSE | evaluated 5474 times by 31 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (104)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
- Self test (91)
- Self test (92)
- Self test (93)
- ...
|
| 5474-16514 |
| 239 | if( iDb==0 ){| TRUE | evaluated 15987 times by 421 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
| | FALSE | evaluated 527 times by 5 testsEvaluated by:- Self test (27)
- Self test (4)
- Self test (438)
- Self test (5)
- Self test (78)
|
| 527-15987 |
| 240 | #ifndef SQLITE_OMIT_UTF16 | - |
| 241 | u8 encoding; | - |
| 242 | | - |
| 243 | encoding = (u8)meta[BTREE_TEXT_ENCODING-1] & 3; | - |
| 244 | if( encoding==0 ) encoding = SQLITE_UTF8; never executed: encoding = 1; | TRUE | never evaluated | | FALSE | evaluated 15987 times by 421 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
|
| 0-15987 |
| 245 | ENC(db) = encoding; | - |
| 246 | #else | - |
| 247 | ENC(db) = SQLITE_UTF8; | - |
| 248 | #endif | - |
| 249 | }else{executed 15987 times by 421 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
| 15987 |
| 250 | | - |
| 251 | if( meta[BTREE_TEXT_ENCODING-1]!=ENC(db) ){| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 526 times by 5 testsEvaluated by:- Self test (27)
- Self test (4)
- Self test (438)
- Self test (5)
- Self test (78)
|
| 1-526 |
| 252 | sqlite3SetString(pzErrMsg, db, "attached databases must use the same" | - |
| 253 | " text encoding as main database"); | - |
| 254 | rc = SQLITE_ERROR; | - |
| 255 | goto initone_error_out;executed 1 time by 1 test: goto initone_error_out; | 1 |
| 256 | } | - |
| 257 | }executed 526 times by 5 tests: end of blockExecuted by:- Self test (27)
- Self test (4)
- Self test (438)
- Self test (5)
- Self test (78)
| 526 |
| 258 | }else{ | - |
| 259 | DbSetProperty(db, iDb, DB_Empty); | - |
| 260 | }executed 5474 times by 31 tests: end of blockExecuted by:- Self test (100)
- Self test (101)
- Self test (104)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
- Self test (91)
- Self test (92)
- Self test (93)
- ...
| 5474 |
| 261 | pDb->pSchema->enc = ENC(db); | - |
| 262 | | - |
| 263 | if( pDb->pSchema->cache_size==0 ){| TRUE | evaluated 19695 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 2292 times by 17 testsEvaluated by:- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (34)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 2292-19695 |
| 264 | #ifndef SQLITE_OMIT_DEPRECATED | - |
| 265 | size = sqlite3AbsInt32(meta[BTREE_DEFAULT_CACHE_SIZE-1]); | - |
| 266 | if( size==0 ){ size = SQLITE_DEFAULT_CACHE_SIZE; }executed 19686 times by 434 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| TRUE | evaluated 19686 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- Self test (438)
- Self test (58)
|
| 9-19686 |
| 267 | pDb->pSchema->cache_size = size; | - |
| 268 | #else | - |
| 269 | pDb->pSchema->cache_size = SQLITE_DEFAULT_CACHE_SIZE; | - |
| 270 | #endif | - |
| 271 | sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size); | - |
| 272 | }executed 19695 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 19695 |
| 273 | | - |
| 274 | | - |
| 275 | | - |
| 276 | | - |
| 277 | | - |
| 278 | | - |
| 279 | | - |
| 280 | pDb->pSchema->file_format = (u8)meta[BTREE_FILE_FORMAT-1]; | - |
| 281 | if( pDb->pSchema->file_format==0 ){| TRUE | evaluated 5481 times by 31 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (104)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
- Self test (91)
- Self test (92)
- Self test (93)
- ...
| | FALSE | evaluated 16506 times by 422 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
|
| 5481-16506 |
| 282 | pDb->pSchema->file_format = 1; | - |
| 283 | }executed 5481 times by 31 tests: end of blockExecuted by:- Self test (100)
- Self test (101)
- Self test (104)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
- Self test (91)
- Self test (92)
- Self test (93)
- ...
| 5481 |
| 284 | if( pDb->pSchema->file_format>SQLITE_MAX_FILE_FORMAT ){| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 21980 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 7-21980 |
| 285 | sqlite3SetString(pzErrMsg, db, "unsupported file format"); | - |
| 286 | rc = SQLITE_ERROR; | - |
| 287 | goto initone_error_out;executed 7 times by 1 test: goto initone_error_out; | 7 |
| 288 | } | - |
| 289 | | - |
| 290 | | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | if( iDb==0 && meta[BTREE_FILE_FORMAT-1]>=4 ){| TRUE | evaluated 19317 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 2663 times by 13 testsEvaluated by:- Self test (27)
- Self test (34)
- Self test (4)
- Self test (438)
- Self test (5)
- Self test (53)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| TRUE | evaluated 15825 times by 421 testsEvaluated by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
| | FALSE | evaluated 3492 times by 29 testsEvaluated by:- Self test (100)
- Self test (101)
- Self test (104)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (438)
- Self test (47)
- Self test (77)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
- Self test (91)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- ...
|
| 2663-19317 |
| 296 | db->flags &= ~SQLITE_LegacyFileFmt; | - |
| 297 | }executed 15825 times by 421 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- Self test (122)
- ...
| 15825 |
| 298 | | - |
| 299 | | - |
| 300 | | - |
| 301 | assert( db->init.busy ); | - |
| 302 | { | - |
| 303 | char *zSql; | - |
| 304 | zSql = sqlite3MPrintf(db, | - |
| 305 | "SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid", | - |
| 306 | db->aDb[iDb].zDbSName, zMasterName); | - |
| 307 | #ifndef SQLITE_OMIT_AUTHORIZATION | - |
| 308 | { | - |
| 309 | sqlite3_xauth xAuth; | - |
| 310 | xAuth = db->xAuth; | - |
| 311 | db->xAuth = 0; | - |
| 312 | #endif | - |
| 313 | rc = sqlite3_exec(db, zSql, sqlite3InitCallback, &initData, 0); | - |
| 314 | #ifndef SQLITE_OMIT_AUTHORIZATION | - |
| 315 | db->xAuth = xAuth; | - |
| 316 | } | - |
| 317 | #endif | - |
| 318 | if( rc==SQLITE_OK ) rc = initData.rc;executed 21532 times by 435 tests: rc = initData.rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| TRUE | evaluated 21532 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 448 times by 1 test |
| 448-21532 |
| 319 | sqlite3DbFree(db, zSql); | - |
| 320 | #ifndef SQLITE_OMIT_ANALYZE | - |
| 321 | if( rc==SQLITE_OK ){| TRUE | evaluated 21513 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 467 times by 1 test |
| 467-21513 |
| 322 | sqlite3AnalysisLoad(db, iDb); | - |
| 323 | }executed 21513 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 21513 |
| 324 | #endif | - |
| 325 | } | - |
| 326 | if( db->mallocFailed ){| TRUE | never evaluated | | FALSE | evaluated 21980 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 0-21980 |
| 327 | rc = SQLITE_NOMEM_BKPT; | - |
| 328 | sqlite3ResetAllSchemasOfConnection(db); | - |
| 329 | } never executed: end of block | 0 |
| 330 | if( rc==SQLITE_OK || (db->flags&SQLITE_WriteSchema)){| TRUE | evaluated 21513 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 467 times by 1 test |
| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 460 times by 1 test |
| 7-21513 |
| 331 | | - |
| 332 | | - |
| 333 | | - |
| 334 | | - |
| 335 | | - |
| 336 | | - |
| 337 | | - |
| 338 | | - |
| 339 | DbSetProperty(db, iDb, DB_SchemaLoaded); | - |
| 340 | rc = SQLITE_OK; | - |
| 341 | }executed 21520 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 21520 |
| 342 | | - |
| 343 | | - |
| 344 | | - |
| 345 | | - |
| 346 | | - |
| 347 | initone_error_out:code before this statement executed 21980 times by 435 tests: initone_error_out:Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 21980 |
| 348 | if( openedTransaction ){| TRUE | evaluated 21346 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 796 times by 3 testsEvaluated by:- Self test (30)
- Self test (438)
- Self test (61)
|
| 796-21346 |
| 349 | sqlite3BtreeCommit(pDb->pBt); | - |
| 350 | }executed 21346 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 21346 |
| 351 | sqlite3BtreeLeave(pDb->pBt); | - |
| 352 | | - |
| 353 | error_out:code before this statement executed 22142 times by 436 tests: error_out:Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 22142 |
| 354 | if( rc ){| TRUE | evaluated 862 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
| | FALSE | evaluated 39739 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 862-39739 |
| 355 | if( rc==SQLITE_NOMEM || rc==SQLITE_IOERR_NOMEM ){| TRUE | evaluated 689 times by 1 test | | FALSE | evaluated 173 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
|
| TRUE | evaluated 52 times by 1 test | | FALSE | evaluated 121 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
|
| 52-689 |
| 356 | sqlite3OomFault(db); | - |
| 357 | }executed 741 times by 1 test: end of block | 741 |
| 358 | sqlite3ResetOneSchema(db, iDb); | - |
| 359 | }executed 862 times by 2 tests: end of blockExecuted by:- Self test (438)
- Self test (61)
| 862 |
| 360 | db->init.busy = 0; | - |
| 361 | return rc;executed 40601 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 40601 |
| 362 | } | - |
| 363 | | - |
| 364 | | - |
| 365 | | - |
| 366 | | - |
| 367 | | - |
| 368 | | - |
| 369 | | - |
| 370 | | - |
| 371 | | - |
| 372 | | - |
| 373 | | - |
| 374 | int sqlite3Init(sqlite3 *db, char **pzErrMsg){ | - |
| 375 | int i, rc; | - |
| 376 | int commit_internal = !(db->mDbFlags&DBFLAG_SchemaChange); | - |
| 377 | | - |
| 378 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 379 | assert( sqlite3BtreeHoldsMutex(db->aDb[0].pBt) ); | - |
| 380 | assert( db->init.busy==0 ); | - |
| 381 | ENC(db) = SCHEMA_ENC(db); | - |
| 382 | assert( db->nDb>0 ); | - |
| 383 | | - |
| 384 | if( !DbHasProperty(db, 0, DB_SchemaLoaded) ){| TRUE | evaluated 19288 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 64258 times by 55 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (105)
- Self test (12)
- Self test (14)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (3)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (39)
- Self test (4)
- ...
|
| 19288-64258 |
| 385 | rc = sqlite3InitOne(db, 0, pzErrMsg, 0); | - |
| 386 | if( rc ) return rc;executed 737 times by 2 tests: return rc;Executed by:- Self test (438)
- Self test (61)
| TRUE | evaluated 737 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
| | FALSE | evaluated 18551 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 737-18551 |
| 387 | }executed 18551 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 18551 |
| 388 | | - |
| 389 | for(i=db->nDb-1; i>0; i--){| TRUE | evaluated 96873 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 82686 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 82686-96873 |
| 390 | assert( i==1 || sqlite3BtreeHoldsMutex(db->aDb[i].pBt) ); | - |
| 391 | if( !DbHasProperty(db, i, DB_SchemaLoaded) ){| TRUE | evaluated 20533 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 76340 times by 55 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (105)
- Self test (12)
- Self test (14)
- Self test (16)
- Self test (18)
- Self test (2)
- Self test (20)
- Self test (22)
- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (3)
- Self test (30)
- Self test (32)
- Self test (33)
- Self test (34)
- Self test (39)
- Self test (4)
- ...
|
| 20533-76340 |
| 392 | rc = sqlite3InitOne(db, i, pzErrMsg, 0); | - |
| 393 | if( rc ) return rc;executed 123 times by 1 test: return rc; | TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 20410 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 123-20410 |
| 394 | }executed 20410 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 20410 |
| 395 | }executed 96750 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 96750 |
| 396 | if( commit_internal ){| TRUE | evaluated 75010 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 7676 times by 10 testsEvaluated by:- Self test (100)
- Self test (438)
- Self test (92)
- Self test (93)
- Self test (94)
- Self test (95)
- Self test (96)
- Self test (97)
- Self test (98)
- Self test (99)
|
| 7676-75010 |
| 397 | sqlite3CommitInternalChanges(db); | - |
| 398 | }executed 75010 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 75010 |
| 399 | return SQLITE_OK;executed 82686 times by 435 tests: return 0;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 82686 |
| 400 | } | - |
| 401 | | - |
| 402 | | - |
| 403 | | - |
| 404 | | - |
| 405 | | - |
| 406 | int sqlite3ReadSchema(Parse *pParse){ | - |
| 407 | int rc = SQLITE_OK; | - |
| 408 | sqlite3 *db = pParse->db; | - |
| 409 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 410 | if( !db->init.busy ){| TRUE | evaluated 73163 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 126976 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 73163-126976 |
| 411 | rc = sqlite3Init(db, &pParse->zErrMsg); | - |
| 412 | if( rc!=SQLITE_OK ){| TRUE | evaluated 857 times by 2 testsEvaluated by:- Self test (438)
- Self test (61)
| | FALSE | evaluated 72306 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 857-72306 |
| 413 | pParse->rc = rc; | - |
| 414 | pParse->nErr++; | - |
| 415 | }else if( db->noSharedCache ){executed 857 times by 2 tests: end of blockExecuted by:- Self test (438)
- Self test (61)
| TRUE | evaluated 70612 times by 434 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 1694 times by 1 test |
| 857-70612 |
| 416 | db->mDbFlags |= DBFLAG_SchemaKnownOk; | - |
| 417 | }executed 70612 times by 434 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 70612 |
| 418 | }executed 73163 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 73163 |
| 419 | return rc;executed 200139 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 200139 |
| 420 | } | - |
| 421 | | - |
| 422 | | - |
| 423 | | - |
| 424 | | - |
| 425 | | - |
| 426 | | - |
| 427 | | - |
| 428 | static void schemaIsValid(Parse *pParse){ | - |
| 429 | sqlite3 *db = pParse->db; | - |
| 430 | int iDb; | - |
| 431 | int rc; | - |
| 432 | int cookie; | - |
| 433 | | - |
| 434 | assert( pParse->checkSchema ); | - |
| 435 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 436 | for(iDb=0; iDb<db->nDb; iDb++){| TRUE | evaluated 1878 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 859 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 859-1878 |
| 437 | int openedTransaction = 0; | - |
| 438 | Btree *pBt = db->aDb[iDb].pBt; | - |
| 439 | if( pBt==0 ) continue;executed 732 times by 12 tests: continue;Executed by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| TRUE | evaluated 732 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 1146 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 732-1146 |
| 440 | | - |
| 441 | | - |
| 442 | | - |
| 443 | | - |
| 444 | if( !sqlite3BtreeIsInReadTrans(pBt) ){| TRUE | evaluated 1122 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 24 times by 1 test |
| 24-1122 |
| 445 | rc = sqlite3BtreeBeginTrans(pBt, 0, 0); | - |
| 446 | if( rc==SQLITE_NOMEM || rc==SQLITE_IOERR_NOMEM ){| TRUE | never evaluated | | FALSE | evaluated 1122 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| TRUE | never evaluated | | FALSE | evaluated 1122 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 0-1122 |
| 447 | sqlite3OomFault(db); | - |
| 448 | } never executed: end of block | 0 |
| 449 | if( rc!=SQLITE_OK ) return; never executed: return; | TRUE | never evaluated | | FALSE | evaluated 1122 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 0-1122 |
| 450 | openedTransaction = 1; | - |
| 451 | }executed 1122 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 1122 |
| 452 | | - |
| 453 | | - |
| 454 | | - |
| 455 | | - |
| 456 | sqlite3BtreeGetMeta(pBt, BTREE_SCHEMA_VERSION, (u32 *)&cookie); | - |
| 457 | assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); | - |
| 458 | if( cookie!=db->aDb[iDb].pSchema->schema_cookie ){| TRUE | evaluated 157 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 989 times by 7 testsEvaluated by:- Self test (27)
- Self test (438)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| 157-989 |
| 459 | sqlite3ResetOneSchema(db, iDb); | - |
| 460 | pParse->rc = SQLITE_SCHEMA; | - |
| 461 | }executed 157 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 157 |
| 462 | | - |
| 463 | | - |
| 464 | if( openedTransaction ){| TRUE | evaluated 1122 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 24 times by 1 test |
| 24-1122 |
| 465 | sqlite3BtreeCommit(pBt); | - |
| 466 | }executed 1122 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 1122 |
| 467 | }executed 1146 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 1146 |
| 468 | }executed 859 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 859 |
| 469 | | - |
| 470 | | - |
| 471 | | - |
| 472 | | - |
| 473 | | - |
| 474 | | - |
| 475 | | - |
| 476 | | - |
| 477 | int sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema){ | - |
| 478 | int i = -1000000; | - |
| 479 | | - |
| 480 | | - |
| 481 | | - |
| 482 | | - |
| 483 | | - |
| 484 | | - |
| 485 | | - |
| 486 | | - |
| 487 | | - |
| 488 | | - |
| 489 | | - |
| 490 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 491 | if( pSchema ){| TRUE | evaluated 1573934 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 4123 times by 1 test |
| 4123-1573934 |
| 492 | for(i=0; 1; i++){| TRUE | evaluated 1672101 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | never evaluated |
| 0-1672101 |
| 493 | assert( i<db->nDb ); | - |
| 494 | if( db->aDb[i].pSchema==pSchema ){| TRUE | evaluated 1573934 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 98167 times by 435 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 98167-1573934 |
| 495 | break;executed 1573934 times by 436 tests: break;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1573934 |
| 496 | } | - |
| 497 | }executed 98167 times by 435 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 98167 |
| 498 | assert( i>=0 && i<db->nDb ); | - |
| 499 | }executed 1573934 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1573934 |
| 500 | return i;executed 1578057 times by 436 tests: return i;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1578057 |
| 501 | } | - |
| 502 | | - |
| 503 | | - |
| 504 | | - |
| 505 | | - |
| 506 | void sqlite3ParserReset(Parse *pParse){ | - |
| 507 | sqlite3 *db = pParse->db; | - |
| 508 | sqlite3DbFree(db, pParse->aLabel); | - |
| 509 | sqlite3ExprListDelete(db, pParse->pConstExpr); | - |
| 510 | if( db ){| TRUE | evaluated 504103 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 10 times by 1 test |
| 10-504103 |
| 511 | assert( db->lookaside.bDisable >= pParse->disableLookaside ); | - |
| 512 | db->lookaside.bDisable -= pParse->disableLookaside; | - |
| 513 | }executed 504103 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 504103 |
| 514 | pParse->disableLookaside = 0; | - |
| 515 | }executed 504113 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 504113 |
| 516 | | - |
| 517 | | - |
| 518 | | - |
| 519 | | - |
| 520 | static int sqlite3Prepare( | - |
| 521 | sqlite3 *db, | - |
| 522 | const char *zSql, | - |
| 523 | int nBytes, | - |
| 524 | u32 prepFlags, | - |
| 525 | Vdbe *pReprepare, | - |
| 526 | sqlite3_stmt **ppStmt, | - |
| 527 | const char **pzTail | - |
| 528 | ){ | - |
| 529 | char *zErrMsg = 0; | - |
| 530 | int rc = SQLITE_OK; | - |
| 531 | int i; | - |
| 532 | Parse sParse; | - |
| 533 | | - |
| 534 | memset(&sParse, 0, PARSE_HDR_SZ); | - |
| 535 | memset(PARSE_TAIL(&sParse), 0, PARSE_TAIL_SZ); | - |
| 536 | sParse.pReprepare = pReprepare; | - |
| 537 | assert( ppStmt && *ppStmt==0 ); | - |
| 538 | | - |
| 539 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 540 | | - |
| 541 | | - |
| 542 | | - |
| 543 | | - |
| 544 | if( prepFlags & SQLITE_PREPARE_PERSISTENT ){| TRUE | evaluated 305977 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 180922 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 180922-305977 |
| 545 | sParse.disableLookaside++; | - |
| 546 | db->lookaside.bDisable++; | - |
| 547 | }executed 305977 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 305977 |
| 548 | | - |
| 549 | | - |
| 550 | | - |
| 551 | | - |
| 552 | | - |
| 553 | | - |
| 554 | | - |
| 555 | | - |
| 556 | | - |
| 557 | | - |
| 558 | | - |
| 559 | | - |
| 560 | | - |
| 561 | | - |
| 562 | | - |
| 563 | | - |
| 564 | | - |
| 565 | | - |
| 566 | | - |
| 567 | | - |
| 568 | | - |
| 569 | | - |
| 570 | | - |
| 571 | | - |
| 572 | for(i=0; i<db->nDb; i++) {| TRUE | evaluated 1020035 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 486889 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 486889-1020035 |
| 573 | Btree *pBt = db->aDb[i].pBt; | - |
| 574 | if( pBt ){| TRUE | evaluated 638848 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 381187 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 381187-638848 |
| 575 | assert( sqlite3BtreeHoldsMutex(pBt) ); | - |
| 576 | rc = sqlite3BtreeSchemaLocked(pBt); | - |
| 577 | if( rc ){| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 638838 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 10-638838 |
| 578 | const char *zDb = db->aDb[i].zDbSName; | - |
| 579 | sqlite3ErrorWithMsg(db, rc, "database schema is locked: %s", zDb); | - |
| 580 | testcase( db->flags & SQLITE_ReadUncommit ); | - |
| 581 | goto end_prepare;executed 10 times by 1 test: goto end_prepare; | 10 |
| 582 | } | - |
| 583 | }executed 638838 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 638838 |
| 584 | }executed 1020025 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 1020025 |
| 585 | | - |
| 586 | sqlite3VtabUnlockList(db); | - |
| 587 | | - |
| 588 | sParse.db = db; | - |
| 589 | if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 486879 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 9 times by 1 test |
| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-486879 |
| 590 | char *zSqlCopy; | - |
| 591 | int mxLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; | - |
| 592 | testcase( nBytes==mxLen ); | - |
| 593 | testcase( nBytes==mxLen+1 ); | - |
| 594 | if( nBytes>mxLen ){| TRUE | never evaluated | | FALSE | evaluated 9 times by 1 test |
| 0-9 |
| 595 | sqlite3ErrorWithMsg(db, SQLITE_TOOBIG, "statement too long"); | - |
| 596 | rc = sqlite3ApiExit(db, SQLITE_TOOBIG); | - |
| 597 | goto end_prepare; never executed: goto end_prepare; | 0 |
| 598 | } | - |
| 599 | zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes); | - |
| 600 | if( zSqlCopy ){| TRUE | evaluated 9 times by 1 test | | FALSE | never evaluated |
| 0-9 |
| 601 | sqlite3RunParser(&sParse, zSqlCopy, &zErrMsg); | - |
| 602 | sParse.zTail = &zSql[sParse.zTail-zSqlCopy]; | - |
| 603 | sqlite3DbFree(db, zSqlCopy); | - |
| 604 | }else{executed 9 times by 1 test: end of block | 9 |
| 605 | sParse.zTail = &zSql[nBytes]; | - |
| 606 | } never executed: end of block | 0 |
| 607 | }else{ | - |
| 608 | sqlite3RunParser(&sParse, zSql, &zErrMsg); | - |
| 609 | }executed 486880 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 486880 |
| 610 | assert( 0==sParse.nQueryLoop ); | - |
| 611 | | - |
| 612 | if( sParse.rc==SQLITE_DONE ) sParse.rc = SQLITE_OK;executed 440679 times by 436 tests: sParse.rc = 0;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| TRUE | evaluated 440679 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 46210 times by 51 testsEvaluated by:- Self test
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (15)
- Self test (19)
- Self test (23)
- Self test (26)
- Self test (27)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (35)
- Self test (38)
- Self test (39)
- Self test (41)
- Self test (42)
- Self test (438)
- Self test (44)
- Self test (46)
- Self test (47)
- ...
|
| 46210-440679 |
| 613 | if( sParse.checkSchema ){| TRUE | evaluated 859 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 486030 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 859-486030 |
| 614 | schemaIsValid(&sParse); | - |
| 615 | }executed 859 times by 12 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 859 |
| 616 | if( db->mallocFailed ){| TRUE | evaluated 2841 times by 1 test | | FALSE | evaluated 484048 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 2841-484048 |
| 617 | sParse.rc = SQLITE_NOMEM_BKPT; | - |
| 618 | }executed 2841 times by 1 test: end of block | 2841 |
| 619 | if( pzTail ){| TRUE | evaluated 329319 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 157570 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 157570-329319 |
| 620 | *pzTail = sParse.zTail; | - |
| 621 | }executed 329319 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 329319 |
| 622 | rc = sParse.rc; | - |
| 623 | | - |
| 624 | #ifndef SQLITE_OMIT_EXPLAIN | - |
| 625 | if( rc==SQLITE_OK && sParse.pVdbe && sParse.explain ){| TRUE | evaluated 482102 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 4787 times by 13 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (61)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
|
| TRUE | evaluated 440672 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 41430 times by 40 testsEvaluated by:- Self test
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (15)
- Self test (19)
- Self test (23)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (35)
- Self test (38)
- Self test (41)
- Self test (42)
- Self test (438)
- Self test (44)
- Self test (46)
- Self test (47)
- Self test (49)
- Self test (54)
- Self test (57)
- Self test (58)
- ...
|
| TRUE | evaluated 939 times by 1 test | | FALSE | evaluated 439733 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 939-482102 |
| 626 | static const char * const azColName[] = { | - |
| 627 | "addr", "opcode", "p1", "p2", "p3", "p4", "p5", "comment", | - |
| 628 | "id", "parent", "notused", "detail" | - |
| 629 | }; | - |
| 630 | int iFirst, mx; | - |
| 631 | if( sParse.explain==2 ){| TRUE | evaluated 614 times by 1 test | | FALSE | evaluated 325 times by 1 test |
| 325-614 |
| 632 | sqlite3VdbeSetNumCols(sParse.pVdbe, 4); | - |
| 633 | iFirst = 8; | - |
| 634 | mx = 12; | - |
| 635 | }else{executed 614 times by 1 test: end of block | 614 |
| 636 | sqlite3VdbeSetNumCols(sParse.pVdbe, 8); | - |
| 637 | iFirst = 0; | - |
| 638 | mx = 8; | - |
| 639 | }executed 325 times by 1 test: end of block | 325 |
| 640 | for(i=iFirst; i<mx; i++){| TRUE | evaluated 5056 times by 1 test | | FALSE | evaluated 939 times by 1 test |
| 939-5056 |
| 641 | sqlite3VdbeSetColName(sParse.pVdbe, i-iFirst, COLNAME_NAME, | - |
| 642 | azColName[i], SQLITE_STATIC); | - |
| 643 | }executed 5056 times by 1 test: end of block | 5056 |
| 644 | }executed 939 times by 1 test: end of block | 939 |
| 645 | #endif | - |
| 646 | | - |
| 647 | if( db->init.busy==0 ){| TRUE | evaluated 355453 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 131436 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 131436-355453 |
| 648 | sqlite3VdbeSetSql(sParse.pVdbe, zSql, (int)(sParse.zTail-zSql), prepFlags); | - |
| 649 | }executed 355453 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 355453 |
| 650 | if( sParse.pVdbe && (rc!=SQLITE_OK || db->mallocFailed) ){| TRUE | evaluated 441940 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| | FALSE | evaluated 44949 times by 51 testsEvaluated by:- Self test
- Self test (100)
- Self test (101)
- Self test (104)
- Self test (105)
- Self test (11)
- Self test (15)
- Self test (19)
- Self test (23)
- Self test (26)
- Self test (27)
- Self test (29)
- Self test (30)
- Self test (31)
- Self test (32)
- Self test (33)
- Self test (35)
- Self test (38)
- Self test (39)
- Self test (41)
- Self test (42)
- Self test (438)
- Self test (44)
- Self test (46)
- Self test (47)
- ...
|
| TRUE | evaluated 1268 times by 2 testsEvaluated by:- Self test (438)
- Self test (47)
| | FALSE | evaluated 440672 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 440642 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 30-441940 |
| 651 | sqlite3VdbeFinalize(sParse.pVdbe); | - |
| 652 | assert(!(*ppStmt)); | - |
| 653 | }else{executed 1298 times by 2 tests: end of blockExecuted by:- Self test (438)
- Self test (47)
| 1298 |
| 654 | *ppStmt = (sqlite3_stmt*)sParse.pVdbe; | - |
| 655 | }executed 485591 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 485591 |
| 656 | | - |
| 657 | if( zErrMsg ){| TRUE | evaluated 1969 times by 13 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (61)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 484920 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 1969-484920 |
| 658 | sqlite3ErrorWithMsg(db, rc, "%s", zErrMsg); | - |
| 659 | sqlite3DbFree(db, zErrMsg); | - |
| 660 | }else{executed 1969 times by 13 tests: end of blockExecuted by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (61)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| 1969 |
| 661 | sqlite3Error(db, rc); | - |
| 662 | }executed 484920 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 484920 |
| 663 | | - |
| 664 | | - |
| 665 | while( sParse.pTriggerPrg ){| TRUE | evaluated 6032 times by 1 test | | FALSE | evaluated 486889 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 6032-486889 |
| 666 | TriggerPrg *pT = sParse.pTriggerPrg; | - |
| 667 | sParse.pTriggerPrg = pT->pNext; | - |
| 668 | sqlite3DbFree(db, pT); | - |
| 669 | }executed 6032 times by 1 test: end of block | 6032 |
| 670 | | - |
| 671 | end_prepare:code before this statement executed 486889 times by 436 tests: end_prepare:Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 486889 |
| 672 | | - |
| 673 | sqlite3ParserReset(&sParse); | - |
| 674 | return rc;executed 486899 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 486899 |
| 675 | } | - |
| 676 | static int sqlite3LockAndPrepare( | - |
| 677 | sqlite3 *db, | - |
| 678 | const char *zSql, | - |
| 679 | int nBytes, | - |
| 680 | u32 prepFlags, | - |
| 681 | Vdbe *pOld, | - |
| 682 | sqlite3_stmt **ppStmt, | - |
| 683 | const char **pzTail | - |
| 684 | ){ | - |
| 685 | int rc; | - |
| 686 | int cnt = 0; | - |
| 687 | | - |
| 688 | #ifdef SQLITE_ENABLE_API_ARMOR | - |
| 689 | if( ppStmt==0 ) return SQLITE_MISUSE_BKPT; | - |
| 690 | #endif | - |
| 691 | *ppStmt = 0; | - |
| 692 | if( !sqlite3SafetyCheckOk(db)||zSql==0 ){| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 486739 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 486739 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 0-486739 |
| 693 | return SQLITE_MISUSE_BKPT;executed 4 times by 1 test: return sqlite3MisuseError(693); | 4 |
| 694 | } | - |
| 695 | sqlite3_mutex_enter(db->mutex); | - |
| 696 | sqlite3BtreeEnterAll(db); | - |
| 697 | do{ | - |
| 698 | | - |
| 699 | | - |
| 700 | | - |
| 701 | rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail); | - |
| 702 | assert( rc==SQLITE_OK || *ppStmt==0 ); | - |
| 703 | }while( rc==SQLITE_ERROR_RETRYexecuted 486899 times by 436 tests: end of blockExecuted by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 486891 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| 8-486899 |
| 704 | || (rc==SQLITE_SCHEMA && (sqlite3ResetOneSchema(db,-1), cnt++)==0) );| TRUE | evaluated 152 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | evaluated 486739 times by 436 testsEvaluated by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
|
| TRUE | evaluated 152 times by 12 testsEvaluated by:- Self test (26)
- Self test (27)
- Self test (29)
- Self test (39)
- Self test (438)
- Self test (47)
- Self test (78)
- Self test (79)
- Self test (80)
- Self test (81)
- Self test (82)
- Self test (83)
| | FALSE | never evaluated |
| 0-486739 |
| 705 | sqlite3BtreeLeaveAll(db); | - |
| 706 | rc = sqlite3ApiExit(db, rc); | - |
| 707 | assert( (rc&db->errMask)==rc ); | - |
| 708 | sqlite3_mutex_leave(db->mutex); | - |
| 709 | return rc;executed 486739 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 486739 |
| 710 | } | - |
| 711 | | - |
| 712 | | - |
| 713 | | - |
| 714 | | - |
| 715 | | - |
| 716 | | - |
| 717 | | - |
| 718 | | - |
| 719 | | - |
| 720 | int sqlite3Reprepare(Vdbe *p){ | - |
| 721 | int rc; | - |
| 722 | sqlite3_stmt *pNew; | - |
| 723 | const char *zSql; | - |
| 724 | sqlite3 *db; | - |
| 725 | u8 prepFlags; | - |
| 726 | | - |
| 727 | assert( sqlite3_mutex_held(sqlite3VdbeDb(p)->mutex) ); | - |
| 728 | zSql = sqlite3_sql((sqlite3_stmt *)p); | - |
| 729 | assert( zSql!=0 ); | - |
| 730 | db = sqlite3VdbeDb(p); | - |
| 731 | assert( sqlite3_mutex_held(db->mutex) ); | - |
| 732 | prepFlags = sqlite3VdbePrepareFlags(p); | - |
| 733 | rc = sqlite3LockAndPrepare(db, zSql, -1, prepFlags, p, &pNew, 0); | - |
| 734 | if( rc ){| TRUE | evaluated 79 times by 1 test | | FALSE | evaluated 23594 times by 11 testsEvaluated by:- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (84)
|
| 79-23594 |
| 735 | if( rc==SQLITE_NOMEM ){| TRUE | never evaluated | | FALSE | evaluated 79 times by 1 test |
| 0-79 |
| 736 | sqlite3OomFault(db); | - |
| 737 | } never executed: end of block | 0 |
| 738 | assert( pNew==0 ); | - |
| 739 | return rc;executed 79 times by 1 test: return rc; | 79 |
| 740 | }else{ | - |
| 741 | assert( pNew!=0 ); | - |
| 742 | }executed 23594 times by 11 tests: end of blockExecuted by:- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (84)
| 23594 |
| 743 | sqlite3VdbeSwap((Vdbe*)pNew, p); | - |
| 744 | sqlite3TransferBindings(pNew, (sqlite3_stmt*)p); | - |
| 745 | sqlite3VdbeResetStepResult((Vdbe*)pNew); | - |
| 746 | sqlite3VdbeFinalize((Vdbe*)pNew); | - |
| 747 | return SQLITE_OK;executed 23594 times by 11 tests: return 0;Executed by:- Self test (24)
- Self test (26)
- Self test (27)
- Self test (28)
- Self test (29)
- Self test (30)
- Self test (34)
- Self test (438)
- Self test (47)
- Self test (53)
- Self test (84)
| 23594 |
| 748 | } | - |
| 749 | | - |
| 750 | | - |
| 751 | | - |
| 752 | | - |
| 753 | | - |
| 754 | | - |
| 755 | | - |
| 756 | | - |
| 757 | | - |
| 758 | | - |
| 759 | int sqlite3_prepare( | - |
| 760 | sqlite3 *db, | - |
| 761 | const char *zSql, | - |
| 762 | int nBytes, | - |
| 763 | sqlite3_stmt **ppStmt, | - |
| 764 | const char **pzTail | - |
| 765 | ){ | - |
| 766 | int rc; | - |
| 767 | rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail); | - |
| 768 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 769 | return rc;executed 100021 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 100021 |
| 770 | } | - |
| 771 | int sqlite3_prepare_v2( | - |
| 772 | sqlite3 *db, | - |
| 773 | const char *zSql, | - |
| 774 | int nBytes, | - |
| 775 | sqlite3_stmt **ppStmt, | - |
| 776 | const char **pzTail | - |
| 777 | ){ | - |
| 778 | int rc; | - |
| 779 | | - |
| 780 | | - |
| 781 | | - |
| 782 | | - |
| 783 | | - |
| 784 | rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0, | - |
| 785 | ppStmt,pzTail); | - |
| 786 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 787 | return rc;executed 78785 times by 435 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 78785 |
| 788 | } | - |
| 789 | int sqlite3_prepare_v3( | - |
| 790 | sqlite3 *db, | - |
| 791 | const char *zSql, | - |
| 792 | int nBytes, | - |
| 793 | unsigned int prepFlags, | - |
| 794 | sqlite3_stmt **ppStmt, | - |
| 795 | const char **pzTail | - |
| 796 | ){ | - |
| 797 | int rc; | - |
| 798 | | - |
| 799 | | - |
| 800 | | - |
| 801 | | - |
| 802 | | - |
| 803 | | - |
| 804 | | - |
| 805 | rc = sqlite3LockAndPrepare(db,zSql,nBytes, | - |
| 806 | SQLITE_PREPARE_SAVESQL|(prepFlags&SQLITE_PREPARE_MASK), | - |
| 807 | 0,ppStmt,pzTail); | - |
| 808 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 809 | return rc;executed 282535 times by 436 tests: return rc;Executed by:- Self test
- Self test (10)
- Self test (100)
- Self test (101)
- Self test (103)
- Self test (104)
- Self test (105)
- Self test (106)
- Self test (107)
- Self test (108)
- Self test (109)
- Self test (11)
- Self test (110)
- Self test (111)
- Self test (112)
- Self test (113)
- Self test (114)
- Self test (115)
- Self test (116)
- Self test (117)
- Self test (118)
- Self test (119)
- Self test (12)
- Self test (120)
- Self test (121)
- ...
| 282535 |
| 810 | } | - |
| 811 | | - |
| 812 | | - |
| 813 | #ifndef SQLITE_OMIT_UTF16 | - |
| 814 | | - |
| 815 | | - |
| 816 | | - |
| 817 | static int sqlite3Prepare16( | - |
| 818 | sqlite3 *db, | - |
| 819 | const void *zSql, | - |
| 820 | int nBytes, | - |
| 821 | u32 prepFlags, | - |
| 822 | sqlite3_stmt **ppStmt, | - |
| 823 | const void **pzTail | - |
| 824 | ){ | - |
| 825 | | - |
| 826 | | - |
| 827 | | - |
| 828 | | - |
| 829 | char *zSql8; | - |
| 830 | const char *zTail8 = 0; | - |
| 831 | int rc = SQLITE_OK; | - |
| 832 | | - |
| 833 | #ifdef SQLITE_ENABLE_API_ARMOR | - |
| 834 | if( ppStmt==0 ) return SQLITE_MISUSE_BKPT; | - |
| 835 | #endif | - |
| 836 | *ppStmt = 0; | - |
| 837 | if( !sqlite3SafetyCheckOk(db)||zSql==0 ){| TRUE | never evaluated | | FALSE | evaluated 1729 times by 1 test |
| TRUE | never evaluated | | FALSE | evaluated 1729 times by 1 test |
| 0-1729 |
| 838 | return SQLITE_MISUSE_BKPT; never executed: return sqlite3MisuseError(838); | 0 |
| 839 | } | - |
| 840 | if( nBytes>=0 ){| TRUE | never evaluated | | FALSE | evaluated 1729 times by 1 test |
| 0-1729 |
| 841 | int sz; | - |
| 842 | const char *z = (const char*)zSql; | - |
| 843 | for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){} never executed: end of block | TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 844 | nBytes = sz; | - |
| 845 | } never executed: end of block | 0 |
| 846 | sqlite3_mutex_enter(db->mutex); | - |
| 847 | zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE); | - |
| 848 | if( zSql8 ){| TRUE | evaluated 1729 times by 1 test | | FALSE | never evaluated |
| 0-1729 |
| 849 | rc = sqlite3LockAndPrepare(db, zSql8, -1, prepFlags, 0, ppStmt, &zTail8); | - |
| 850 | }executed 1729 times by 1 test: end of block | 1729 |
| 851 | | - |
| 852 | if( zTail8 && pzTail ){| TRUE | evaluated 1729 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 1727 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 0-1729 |
| 853 | | - |
| 854 | | - |
| 855 | | - |
| 856 | | - |
| 857 | | - |
| 858 | int chars_parsed = sqlite3Utf8CharLen(zSql8, (int)(zTail8-zSql8)); | - |
| 859 | *pzTail = (u8 *)zSql + sqlite3Utf16ByteLen(zSql, chars_parsed); | - |
| 860 | }executed 1727 times by 1 test: end of block | 1727 |
| 861 | sqlite3DbFree(db, zSql8); | - |
| 862 | rc = sqlite3ApiExit(db, rc); | - |
| 863 | sqlite3_mutex_leave(db->mutex); | - |
| 864 | return rc;executed 1729 times by 1 test: return rc; | 1729 |
| 865 | } | - |
| 866 | | - |
| 867 | | - |
| 868 | | - |
| 869 | | - |
| 870 | | - |
| 871 | | - |
| 872 | | - |
| 873 | | - |
| 874 | | - |
| 875 | int sqlite3_prepare16( | - |
| 876 | sqlite3 *db, | - |
| 877 | const void *zSql, | - |
| 878 | int nBytes, | - |
| 879 | sqlite3_stmt **ppStmt, | - |
| 880 | const void **pzTail | - |
| 881 | ){ | - |
| 882 | int rc; | - |
| 883 | rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail); | - |
| 884 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 885 | return rc;executed 1725 times by 1 test: return rc; | 1725 |
| 886 | } | - |
| 887 | int sqlite3_prepare16_v2( | - |
| 888 | sqlite3 *db, | - |
| 889 | const void *zSql, | - |
| 890 | int nBytes, | - |
| 891 | sqlite3_stmt **ppStmt, | - |
| 892 | const void **pzTail | - |
| 893 | ){ | - |
| 894 | int rc; | - |
| 895 | rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail); | - |
| 896 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 897 | return rc;executed 4 times by 1 test: return rc; | 4 |
| 898 | } | - |
| 899 | int sqlite3_prepare16_v3( | - |
| 900 | sqlite3 *db, | - |
| 901 | const void *zSql, | - |
| 902 | int nBytes, | - |
| 903 | unsigned int prepFlags, | - |
| 904 | sqlite3_stmt **ppStmt, | - |
| 905 | const void **pzTail | - |
| 906 | ){ | - |
| 907 | int rc; | - |
| 908 | rc = sqlite3Prepare16(db,zSql,nBytes, | - |
| 909 | SQLITE_PREPARE_SAVESQL|(prepFlags&SQLITE_PREPARE_MASK), | - |
| 910 | ppStmt,pzTail); | - |
| 911 | assert( rc==SQLITE_OK || ppStmt==0 || *ppStmt==0 ); | - |
| 912 | return rc; never executed: return rc; | 0 |
| 913 | } | - |
| 914 | | - |
| 915 | #endif /* SQLITE_OMIT_UTF16 */ | - |
| | |