IsType
Jump to P2 if the type of a column in a btree is one of the types specified by the P5 bitmask.
Jumps: P2 is an instruction address. In the listings here, a jump is drawn as an arc and the address is a link.
An example
2 of the 178 statements we compiled against the sample database use IsType. This is the one with the shortest program; the rows that use IsType are highlighted.
PRAGMA quick_check
| addr | opcode | p1 | p2 | p3 | p4 | p5 |
|---|---|---|---|---|---|---|
| 0 | Init | 0 | 519 | 516 | 0 | |
| 1 | Expire | 1 | 1 | 0 | 0 | |
| 2 | Integer | 99 | 1 | 0 | 0 | |
| 3 | Null | 0 | 8 | 31 | 0 | |
| 4 | IntegrityCk | 1 | 23 | 8 | [22,0,16,23,24,15,11,13,14,9,8,1,21,17,18,2,7,6,3,0,4,19,5] | 0 |
| 5 | IsNull | 2 | 11 | 0 | 0 | |
| 6 | String8 | 0 | 3 | 0 | *** in database main *** | 0 |
| 7 | Concat | 2 | 3 | 3 | 0 | |
| 8 | ResultRow | 3 | 1 | 0 | 0 | |
| 9 | IfPos | 1 | 11 | 1 | 0 | |
| 10 | Halt | 0 | 0 | 0 | 0 | |
| 11 | String8 | 0 | 2 | 0 | wrong # of entries in index | 0 |
| 12 | Eq | 10 | 18 | 10 | 0 | |
| 13 | String8 | 0 | 4 | 0 | sqlite_autoindex_playlist_tracks_1 | 0 |
| 14 | Concat | 4 | 2 | 3 | 0 | |
| 15 | ResultRow | 3 | 1 | 0 | 0 | |
| 16 | IfPos | 1 | 18 | 1 | 0 | |
| 17 | Halt | 0 | 0 | 0 | 0 | |
| 18 | Eq | 12 | 24 | 11 | 0 | |
| 19 | String8 | 0 | 4 | 0 | sqlite_autoindex_lyrics_segdir_1 | 0 |
| 20 | Concat | 4 | 2 | 3 | 0 | |
| 21 | ResultRow | 3 | 1 | 0 | 0 | |
| 22 | IfPos | 1 | 24 | 1 | 0 | |
| 23 | Halt | 0 | 0 | 0 | 0 | |
| 24 | Eq | 16 | 30 | 15 | 0 | |
| 25 | String8 | 0 | 4 | 0 | sqlite_autoindex_playlists_1 | 0 |
| 26 | Concat | 4 | 2 | 3 | 0 | |
| 27 | ResultRow | 3 | 1 | 0 | 0 | |
| 28 | IfPos | 1 | 30 | 1 | 0 | |
| 29 | Halt | 0 | 0 | 0 | 0 | |
| 30 | Eq | 17 | 36 | 17 | 0 | |
| 31 | String8 | 0 | 4 | 0 | sqlite_autoindex_genres_1 | 0 |
| 32 | Concat | 4 | 2 | 3 | 0 | |
| 33 | ResultRow | 3 | 1 | 0 | 0 | |
| 34 | IfPos | 1 | 36 | 1 | 0 | |
| 35 | Halt | 0 | 0 | 0 | 0 | |
| 36 | Eq | 24 | 42 | 23 | 0 | |
| 37 | String8 | 0 | 4 | 0 | artists_lower | 0 |
| 38 | Concat | 4 | 2 | 3 | 0 | |
| 39 | ResultRow | 3 | 1 | 0 | 0 | |
| 40 | IfPos | 1 | 42 | 1 | 0 | |
| 41 | Halt | 0 | 0 | 0 | 0 | |
| 42 | Eq | 25 | 48 | 23 | 0 | |
| 43 | String8 | 0 | 4 | 0 | artists_name | 0 |
| 44 | Concat | 4 | 2 | 3 | 0 | |
| 45 | ResultRow | 3 | 1 | 0 | 0 | |
| 46 | IfPos | 1 | 48 | 1 | 0 | |
| 47 | Halt | 0 | 0 | 0 | 0 | |
| 48 | Eq | 29 | 54 | 28 | 0 | |
| 49 | String8 | 0 | 4 | 0 | tracks_minutes | 0 |
| 50 | Concat | 4 | 2 | 3 | 0 | |
| 51 | ResultRow | 3 | 1 | 0 | 0 | |
| 52 | IfPos | 1 | 54 | 1 | 0 | |
| 53 | Halt | 0 | 0 | 0 | 0 | |
| 54 | Eq | 30 | 60 | 28 | 0 | |
| 55 | String8 | 0 | 4 | 0 | tracks_album | 0 |
| 56 | Concat | 4 | 2 | 3 | 0 | |
| 57 | ResultRow | 3 | 1 | 0 | 0 | |
| 58 | IfPos | 1 | 60 | 1 | 0 | |
| 59 | Halt | 0 | 0 | 0 | 0 | |
| 60 | OpenRead | 1 | 22 | 0 | 2 | 0 |
| 61 | Integer | 0 | 7 | 0 | 0 | |
| 62 | Rewind | 1 | 66 | 0 | 0 | |
| 63 | AddImm | 7 | 1 | 0 | 0 | |
| 64 | Column | 1 | 1 | 3 | 128 | |
| 65 | Next | 1 | 63 | 0 | 0 | |
| 66 | OpenRead | 2 | 16 | 0 | k(2,,) | 0 |
| 67 | Integer | 0 | 7 | 0 | 0 | |
| 68 | Integer | 0 | 8 | 0 | 0 | |
| 69 | Rewind | 2 | 107 | 0 | 0 | |
| 70 | AddImm | 7 | 1 | 0 | 0 | |
| 71 | Column | 2 | 2 | 3 | 128 | |
| 72 | IsType | 2 | 77 | 0 | 5 | 13 |
| 73 | Column | 2 | 0 | 3 | 0 | |
| 74 | NotNull | 3 | 77 | 0 | 0 | |
| 75 | String8 | 0 | 3 | 0 | NULL value in playlist_tracks.playlist_id | 0 |
| 76 | Goto | 0 | 82 | 0 | 0 | |
| 77 | IsType | 2 | 85 | 0 | 5 | 27 |
| 78 | Column | 2 | 0 | 3 | 0 | |
| 79 | Affinity | 3 | 1 | 0 | C | 0 |
| 80 | IsType | -1 | 85 | 3 | 5 | 28 |
| 81 | String8 | 0 | 3 | 0 | TEXT value in playlist_tracks.playlist_id | 0 |
| 82 | ResultRow | 3 | 1 | 0 | 0 | |
| 83 | IfPos | 1 | 85 | 1 | 0 | |
| 84 | Halt | 0 | 0 | 0 | 0 | |
| 85 | IsType | 2 | 90 | 1 | 5 | 13 |
| 86 | Column | 2 | 1 | 3 | 0 | |
| 87 | NotNull | 3 | 90 | 0 | 0 | |
| 88 | String8 | 0 | 3 | 0 | NULL value in playlist_tracks.track_id | 0 |
| 89 | Goto | 0 | 95 | 0 | 0 | |
| 90 | IsType | 2 | 98 | 1 | 5 | 27 |
| 91 | Column | 2 | 1 | 3 | 0 | |
| 92 | Affinity | 3 | 1 | 0 | C | 0 |
| 93 | IsType | -1 | 98 | 3 | 5 | 28 |
| 94 | String8 | 0 | 3 | 0 | TEXT value in playlist_tracks.track_id | 0 |
| 95 | ResultRow | 3 | 1 | 0 | 0 | |
| 96 | IfPos | 1 | 98 | 1 | 0 | |
| 97 | Halt | 0 | 0 | 0 | 0 | |
| 98 | IsType | 2 | 106 | 2 | 5 | 27 |
| 99 | Column | 2 | 2 | 3 | 0 | |
| 100 | Affinity | 3 | 1 | 0 | C | 0 |
| 101 | IsType | -1 | 106 | 3 | 5 | 28 |
| 102 | String8 | 0 | 3 | 0 | TEXT value in playlist_tracks.position | 0 |
| 103 | ResultRow | 3 | 1 | 0 | 0 | |
| 104 | IfPos | 1 | 106 | 1 | 0 | |
| 105 | Halt | 0 | 0 | 0 | 0 | |
| 106 | Next | 2 | 70 | 0 | 0 | |
| 107 | OpenRead | 1 | 23 | 0 | 6 | 0 |
| 108 | OpenRead | 2 | 24 | 0 | k(3,,,) | 0 |
| 109 | Integer | 0 | 7 | 0 | 0 | |
| 110 | Integer | 0 | 8 | 0 | 0 | |
| 111 | Rewind | 1 | 155 | 0 | 0 | |
| 112 | AddImm | 7 | 1 | 0 | 0 | |
| 113 | Column | 1 | 5 | 3 | 128 | |
| 114 | IsType | 1 | 122 | 0 | 5 | 27 |
| 115 | Column | 1 | 0 | 3 | 0 | |
| 116 | Affinity | 3 | 1 | 0 | C | 0 |
| 117 | IsType | -1 | 122 | 3 | 5 | 28 |
| 118 | String8 | 0 | 3 | 0 | TEXT value in lyrics_segdir.level | 0 |
| 119 | ResultRow | 3 | 1 | 0 | 0 | |
| 120 | IfPos | 1 | 122 | 1 | 0 | |
| 121 | Halt | 0 | 0 | 0 | 0 | |
| 122 | IsType | 1 | 130 | 1 | 5 | 27 |
| 123 | Column | 1 | 1 | 3 | 0 | |
| 124 | Affinity | 3 | 1 | 0 | C | 0 |
| 125 | IsType | -1 | 130 | 3 | 5 | 28 |
| 126 | String8 | 0 | 3 | 0 | TEXT value in lyrics_segdir.idx | 0 |
| 127 | ResultRow | 3 | 1 | 0 | 0 | |
| 128 | IfPos | 1 | 130 | 1 | 0 | |
| 129 | Halt | 0 | 0 | 0 | 0 | |
| 130 | IsType | 1 | 138 | 2 | 5 | 27 |
| 131 | Column | 1 | 2 | 3 | 0 | |
| 132 | Affinity | 3 | 1 | 0 | C | 0 |
| 133 | IsType | -1 | 138 | 3 | 5 | 28 |
| 134 | String8 | 0 | 3 | 0 | TEXT value in lyrics_segdir.start_block | 0 |
| 135 | ResultRow | 3 | 1 | 0 | 0 | |
| 136 | IfPos | 1 | 138 | 1 | 0 | |
| 137 | Halt | 0 | 0 | 0 | 0 | |
| 138 | IsType | 1 | 146 | 3 | 5 | 27 |
| 139 | Column | 1 | 3 | 3 | 0 | |
| 140 | Affinity | 3 | 1 | 0 | C | 0 |
| 141 | IsType | -1 | 146 | 3 | 5 | 28 |
| 142 | String8 | 0 | 3 | 0 | TEXT value in lyrics_segdir.leaves_end_block | 0 |
| 143 | ResultRow | 3 | 1 | 0 | 0 | |
| 144 | IfPos | 1 | 146 | 1 | 0 | |
| 145 | Halt | 0 | 0 | 0 | 0 | |
| 146 | IsType | 1 | 154 | 4 | 5 | 27 |
| 147 | Column | 1 | 4 | 3 | 0 | |
| 148 | Affinity | 3 | 1 | 0 | C | 0 |
| 149 | IsType | -1 | 154 | 3 | 5 | 28 |
| 150 | String8 | 0 | 3 | 0 | TEXT value in lyrics_segdir.end_block | 0 |
| 151 | ResultRow | 3 | 1 | 0 | 0 | |
| 152 | IfPos | 1 | 154 | 1 | 0 | |
| 153 | Halt | 0 | 0 | 0 | 0 | |
| 154 | Next | 1 | 112 | 0 | 0 | |
| 155 | OpenRead | 1 | 15 | 0 | 2 | 0 |
| 156 | Integer | 0 | 7 | 0 | 0 | |
| 157 | Rewind | 1 | 161 | 0 | 0 | |
| 158 | AddImm | 7 | 1 | 0 | 0 | |
| 159 | Column | 1 | 1 | 3 | 128 | |
| 160 | Next | 1 | 158 | 0 | 0 | |
| 161 | OpenRead | 1 | 11 | 0 | 4 | 0 |
| 162 | Integer | 0 | 7 | 0 | 0 | |
| 163 | Rewind | 1 | 180 | 0 | 0 | |
| 164 | AddImm | 7 | 1 | 0 | 0 | |
| 165 | Column | 1 | 3 | 3 | 128 | |
| 166 | IsType | 1 | 174 | 1 | 5 | 27 |
| 167 | Column | 1 | 1 | 3 | 0 | |
| 168 | Affinity | 3 | 1 | 0 | C | 0 |
| 169 | IsType | -1 | 174 | 3 | 5 | 28 |
| 170 | String8 | 0 | 3 | 0 | TEXT value in notes.album_id | 0 |
| 171 | ResultRow | 3 | 1 | 0 | 0 | |
| 172 | IfPos | 1 | 174 | 1 | 0 | |
| 173 | Halt | 0 | 0 | 0 | 0 | |
| 174 | IsType | 1 | 179 | 2 | 5 | 28 |
| 175 | String8 | 0 | 3 | 0 | NUMERIC value in notes.body | 0 |
| 176 | ResultRow | 3 | 1 | 0 | 0 | |
| 177 | IfPos | 1 | 179 | 1 | 0 | |
| 178 | Halt | 0 | 0 | 0 | 0 | |
| 179 | Next | 1 | 164 | 0 | 0 | |
| 180 | OpenRead | 1 | 13 | 0 | 3 | 0 |
| 181 | OpenRead | 2 | 14 | 0 | k(1,) | 0 |
| 182 | Integer | 0 | 7 | 0 | 0 | |
| 183 | Integer | 0 | 8 | 0 | 0 | |
| 184 | Rewind | 1 | 203 | 0 | 0 | |
| 185 | AddImm | 7 | 1 | 0 | 0 | |
| 186 | Column | 1 | 2 | 3 | 128 | |
| 187 | IsType | 1 | 192 | 1 | 5 | 13 |
| 188 | Column | 1 | 1 | 3 | 0 | |
| 189 | NotNull | 3 | 192 | 0 | 0 | |
| 190 | String8 | 0 | 3 | 0 | NULL value in playlists.name | 0 |
| 191 | Goto | 0 | 194 | 0 | 0 | |
| 192 | IsType | 1 | 197 | 1 | 5 | 28 |
| 193 | String8 | 0 | 3 | 0 | NUMERIC value in playlists.name | 0 |
| 194 | ResultRow | 3 | 1 | 0 | 0 | |
| 195 | IfPos | 1 | 197 | 1 | 0 | |
| 196 | Halt | 0 | 0 | 0 | 0 | |
| 197 | IsType | 1 | 202 | 2 | 5 | 28 |
| 198 | String8 | 0 | 3 | 0 | NUMERIC value in playlists.created | 0 |
| 199 | ResultRow | 3 | 1 | 0 | 0 | |
| 200 | IfPos | 1 | 202 | 1 | 0 | |
| 201 | Halt | 0 | 0 | 0 | 0 | |
| 202 | Next | 1 | 185 | 0 | 0 | |
| 203 | OpenRead | 2 | 9 | 0 | k(1,) | 0 |
| 204 | Integer | 0 | 7 | 0 | 0 | |
| 205 | Integer | 0 | 8 | 0 | 0 | |
| 206 | Rewind | 2 | 225 | 0 | 0 | |
| 207 | AddImm | 7 | 1 | 0 | 0 | |
| 208 | Column | 2 | 1 | 3 | 128 | |
| 209 | IsType | 2 | 214 | 0 | 5 | 13 |
| 210 | Column | 2 | 0 | 3 | 0 | |
| 211 | NotNull | 3 | 214 | 0 | 0 | |
| 212 | String8 | 0 | 3 | 0 | NULL value in genres.name | 0 |
| 213 | Goto | 0 | 216 | 0 | 0 | |
| 214 | IsType | 2 | 219 | 0 | 5 | 28 |
| 215 | String8 | 0 | 3 | 0 | NUMERIC value in genres.name | 0 |
| 216 | ResultRow | 3 | 1 | 0 | 0 | |
| 217 | IfPos | 1 | 219 | 1 | 0 | |
| 218 | Halt | 0 | 0 | 0 | 0 | |
| 219 | IsType | 2 | 224 | 1 | 5 | 28 |
| 220 | String8 | 0 | 3 | 0 | NUMERIC value in genres.description | 0 |
| 221 | ResultRow | 3 | 1 | 0 | 0 | |
| 222 | IfPos | 1 | 224 | 1 | 0 | |
| 223 | Halt | 0 | 0 | 0 | 0 | |
| 224 | Next | 2 | 207 | 0 | 0 | |
| 225 | OpenRead | 1 | 8 | 0 | 3 | 0 |
| 226 | Integer | 0 | 7 | 0 | 0 | |
| 227 | Rewind | 1 | 246 | 0 | 0 | |
| 228 | AddImm | 7 | 1 | 0 | 0 | |
| 229 | Column | 1 | 2 | 3 | 128 | |
| 230 | IsType | 1 | 235 | 1 | 5 | 13 |
| 231 | Column | 1 | 1 | 3 | 0 | |
| 232 | NotNull | 3 | 235 | 0 | 0 | |
| 233 | String8 | 0 | 3 | 0 | NULL value in artists_archive.name | 0 |
| 234 | Goto | 0 | 237 | 0 | 0 | |
| 235 | IsType | 1 | 240 | 1 | 5 | 28 |
| 236 | String8 | 0 | 3 | 0 | NUMERIC value in artists_archive.name | 0 |
| 237 | ResultRow | 3 | 1 | 0 | 0 | |
| 238 | IfPos | 1 | 240 | 1 | 0 | |
| 239 | Halt | 0 | 0 | 0 | 0 | |
| 240 | IsType | 1 | 245 | 2 | 5 | 28 |
| 241 | String8 | 0 | 3 | 0 | NUMERIC value in artists_archive.country | 0 |
| 242 | ResultRow | 3 | 1 | 0 | 0 | |
| 243 | IfPos | 1 | 245 | 1 | 0 | |
| 244 | Halt | 0 | 0 | 0 | 0 | |
| 245 | Next | 1 | 228 | 0 | 0 | |
| 246 | OpenRead | 1 | 1 | 0 | 5 | 0 |
| 247 | Integer | 0 | 7 | 0 | 0 | |
| 248 | Rewind | 1 | 280 | 0 | 0 | |
| 249 | AddImm | 7 | 1 | 0 | 0 | |
| 250 | Column | 1 | 4 | 3 | 128 | |
| 251 | IsType | 1 | 256 | 0 | 5 | 28 |
| 252 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_master.type | 0 |
| 253 | ResultRow | 3 | 1 | 0 | 0 | |
| 254 | IfPos | 1 | 256 | 1 | 0 | |
| 255 | Halt | 0 | 0 | 0 | 0 | |
| 256 | IsType | 1 | 261 | 1 | 5 | 28 |
| 257 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_master.name | 0 |
| 258 | ResultRow | 3 | 1 | 0 | 0 | |
| 259 | IfPos | 1 | 261 | 1 | 0 | |
| 260 | Halt | 0 | 0 | 0 | 0 | |
| 261 | IsType | 1 | 266 | 2 | 5 | 28 |
| 262 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_master.tbl_name | 0 |
| 263 | ResultRow | 3 | 1 | 0 | 0 | |
| 264 | IfPos | 1 | 266 | 1 | 0 | |
| 265 | Halt | 0 | 0 | 0 | 0 | |
| 266 | IsType | 1 | 274 | 3 | 5 | 27 |
| 267 | Column | 1 | 3 | 3 | 0 | |
| 268 | Affinity | 3 | 1 | 0 | C | 0 |
| 269 | IsType | -1 | 274 | 3 | 5 | 28 |
| 270 | String8 | 0 | 3 | 0 | TEXT value in sqlite_master.rootpage | 0 |
| 271 | ResultRow | 3 | 1 | 0 | 0 | |
| 272 | IfPos | 1 | 274 | 1 | 0 | |
| 273 | Halt | 0 | 0 | 0 | 0 | |
| 274 | IsType | 1 | 279 | 4 | 5 | 28 |
| 275 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_master.sql | 0 |
| 276 | ResultRow | 3 | 1 | 0 | 0 | |
| 277 | IfPos | 1 | 279 | 1 | 0 | |
| 278 | Halt | 0 | 0 | 0 | 0 | |
| 279 | Next | 1 | 249 | 0 | 0 | |
| 280 | OpenRead | 1 | 21 | 0 | 3 | 0 |
| 281 | Integer | 0 | 7 | 0 | 0 | |
| 282 | Rewind | 1 | 286 | 0 | 0 | |
| 283 | AddImm | 7 | 1 | 0 | 0 | |
| 284 | Column | 1 | 2 | 3 | 128 | |
| 285 | Next | 1 | 283 | 0 | 0 | |
| 286 | OpenRead | 1 | 17 | 0 | 4 | 0 |
| 287 | OpenRead | 2 | 18 | 0 | k(2,,) | 0 |
| 288 | Integer | 0 | 7 | 0 | 0 | |
| 289 | Integer | 0 | 8 | 0 | 0 | |
| 290 | Rewind | 1 | 343 | 0 | 0 | |
| 291 | AddImm | 7 | 1 | 0 | 0 | |
| 292 | Column | 1 | 3 | 3 | 128 | |
| 293 | IsType | 1 | 298 | 1 | 5 | 13 |
| 294 | Column | 1 | 1 | 3 | 0 | |
| 295 | NotNull | 3 | 298 | 0 | 0 | |
| 296 | String8 | 0 | 3 | 0 | NULL value in sales.track_id | 0 |
| 297 | Goto | 0 | 300 | 0 | 0 | |
| 298 | IsType | 1 | 303 | 1 | 5 | 17 |
| 299 | String8 | 0 | 3 | 0 | non-INTEGER value in sales.track_id | 0 |
| 300 | ResultRow | 3 | 1 | 0 | 0 | |
| 301 | IfPos | 1 | 303 | 1 | 0 | |
| 302 | Halt | 0 | 0 | 0 | 0 | |
| 303 | IsType | 1 | 308 | 2 | 5 | 13 |
| 304 | Column | 1 | 2 | 3 | 0 | |
| 305 | NotNull | 3 | 308 | 0 | 0 | |
| 306 | String8 | 0 | 3 | 0 | NULL value in sales.quantity | 0 |
| 307 | Goto | 0 | 310 | 0 | 0 | |
| 308 | IsType | 1 | 313 | 2 | 5 | 17 |
| 309 | String8 | 0 | 3 | 0 | non-INTEGER value in sales.quantity | 0 |
| 310 | ResultRow | 3 | 1 | 0 | 0 | |
| 311 | IfPos | 1 | 313 | 1 | 0 | |
| 312 | Halt | 0 | 0 | 0 | 0 | |
| 313 | IsType | 1 | 319 | 3 | 5 | 13 |
| 314 | Column | 1 | 3 | 3 | 0 | |
| 315 | RealAffinity | 3 | 0 | 0 | 0 | |
| 316 | NotNull | 3 | 319 | 0 | 0 | |
| 317 | String8 | 0 | 3 | 0 | NULL value in sales.unit_price | 0 |
| 318 | Goto | 0 | 321 | 0 | 0 | |
| 319 | IsType | 1 | 324 | 3 | 5 | 19 |
| 320 | String8 | 0 | 3 | 0 | non-REAL value in sales.unit_price | 0 |
| 321 | ResultRow | 3 | 1 | 0 | 0 | |
| 322 | IfPos | 1 | 324 | 1 | 0 | |
| 323 | Halt | 0 | 0 | 0 | 0 | |
| 324 | IfNullRow | 1 | 330 | 3 | 0 | |
| 325 | Column | 1 | 2 | 32 | 0 | |
| 326 | Column | 1 | 3 | 33 | 0 | |
| 327 | RealAffinity | 33 | 0 | 0 | 0 | |
| 328 | Multiply | 33 | 32 | 3 | 0 | |
| 329 | TypeCheck | 3 | 1 | 6 | sales | 0 |
| 330 | IsType | -1 | 335 | 3 | 5 | 19 |
| 331 | String8 | 0 | 3 | 0 | non-REAL value in sales.total | 0 |
| 332 | ResultRow | 3 | 1 | 0 | 0 | |
| 333 | IfPos | 1 | 335 | 1 | 0 | |
| 334 | Halt | 0 | 0 | 0 | 0 | |
| 335 | Column | 1 | 2 | 33 | 0 | |
| 336 | Integer | 0 | 32 | 0 | 0 | |
| 337 | Gt | 32 | 342 | 33 | BINARY-8 | 84 |
| 338 | String8 | 0 | 3 | 0 | CHECK constraint failed in sales | 0 |
| 339 | ResultRow | 3 | 1 | 0 | 0 | |
| 340 | IfPos | 1 | 342 | 1 | 0 | |
| 341 | Halt | 0 | 0 | 0 | 0 | |
| 342 | Next | 1 | 291 | 0 | 0 | |
| 343 | OpenRead | 1 | 2 | 0 | 3 | 0 |
| 344 | OpenRead | 2 | 7 | 0 | k(2,,) | 0 |
| 345 | OpenRead | 3 | 6 | 0 | k(2,,) | 0 |
| 346 | Integer | 0 | 7 | 0 | 0 | |
| 347 | Integer | 0 | 8 | 0 | 0 | |
| 348 | Integer | 0 | 9 | 0 | 0 | |
| 349 | Rewind | 1 | 368 | 0 | 0 | |
| 350 | AddImm | 7 | 1 | 0 | 0 | |
| 351 | Column | 1 | 2 | 3 | 128 | |
| 352 | IsType | 1 | 357 | 1 | 5 | 13 |
| 353 | Column | 1 | 1 | 3 | 0 | |
| 354 | NotNull | 3 | 357 | 0 | 0 | |
| 355 | String8 | 0 | 3 | 0 | NULL value in artists.name | 0 |
| 356 | Goto | 0 | 359 | 0 | 0 | |
| 357 | IsType | 1 | 362 | 1 | 5 | 28 |
| 358 | String8 | 0 | 3 | 0 | NUMERIC value in artists.name | 0 |
| 359 | ResultRow | 3 | 1 | 0 | 0 | |
| 360 | IfPos | 1 | 362 | 1 | 0 | |
| 361 | Halt | 0 | 0 | 0 | 0 | |
| 362 | IsType | 1 | 367 | 2 | 5 | 28 |
| 363 | String8 | 0 | 3 | 0 | NUMERIC value in artists.country | 0 |
| 364 | ResultRow | 3 | 1 | 0 | 0 | |
| 365 | IfPos | 1 | 367 | 1 | 0 | |
| 366 | Halt | 0 | 0 | 0 | 0 | |
| 367 | Next | 1 | 350 | 0 | 0 | |
| 368 | OpenRead | 1 | 3 | 0 | 4 | 0 |
| 369 | Integer | 0 | 7 | 0 | 0 | |
| 370 | Rewind | 1 | 405 | 0 | 0 | |
| 371 | AddImm | 7 | 1 | 0 | 0 | |
| 372 | Column | 1 | 3 | 3 | 128 | |
| 373 | IsType | 1 | 378 | 1 | 5 | 13 |
| 374 | Column | 1 | 1 | 3 | 0 | |
| 375 | NotNull | 3 | 378 | 0 | 0 | |
| 376 | String8 | 0 | 3 | 0 | NULL value in albums.artist_id | 0 |
| 377 | Goto | 0 | 383 | 0 | 0 | |
| 378 | IsType | 1 | 386 | 1 | 5 | 27 |
| 379 | Column | 1 | 1 | 3 | 0 | |
| 380 | Affinity | 3 | 1 | 0 | C | 0 |
| 381 | IsType | -1 | 386 | 3 | 5 | 28 |
| 382 | String8 | 0 | 3 | 0 | TEXT value in albums.artist_id | 0 |
| 383 | ResultRow | 3 | 1 | 0 | 0 | |
| 384 | IfPos | 1 | 386 | 1 | 0 | |
| 385 | Halt | 0 | 0 | 0 | 0 | |
| 386 | IsType | 1 | 391 | 2 | 5 | 13 |
| 387 | Column | 1 | 2 | 3 | 0 | |
| 388 | NotNull | 3 | 391 | 0 | 0 | |
| 389 | String8 | 0 | 3 | 0 | NULL value in albums.title | 0 |
| 390 | Goto | 0 | 393 | 0 | 0 | |
| 391 | IsType | 1 | 396 | 2 | 5 | 28 |
| 392 | String8 | 0 | 3 | 0 | NUMERIC value in albums.title | 0 |
| 393 | ResultRow | 3 | 1 | 0 | 0 | |
| 394 | IfPos | 1 | 396 | 1 | 0 | |
| 395 | Halt | 0 | 0 | 0 | 0 | |
| 396 | IsType | 1 | 404 | 3 | 5 | 27 |
| 397 | Column | 1 | 3 | 3 | 0 | |
| 398 | Affinity | 3 | 1 | 0 | C | 0 |
| 399 | IsType | -1 | 404 | 3 | 5 | 28 |
| 400 | String8 | 0 | 3 | 0 | TEXT value in albums.year | 0 |
| 401 | ResultRow | 3 | 1 | 0 | 0 | |
| 402 | IfPos | 1 | 404 | 1 | 0 | |
| 403 | Halt | 0 | 0 | 0 | 0 | |
| 404 | Next | 1 | 371 | 0 | 0 | |
| 405 | OpenRead | 1 | 4 | 0 | 6 | 0 |
| 406 | OpenRead | 2 | 19 | 0 | k(2,,) | 0 |
| 407 | OpenRead | 3 | 5 | 0 | k(2,,) | 0 |
| 408 | Integer | 0 | 7 | 0 | 0 | |
| 409 | Integer | 0 | 8 | 0 | 0 | |
| 410 | Integer | 0 | 9 | 0 | 0 | |
| 411 | Rewind | 1 | 463 | 0 | 0 | |
| 412 | AddImm | 7 | 1 | 0 | 0 | |
| 413 | Column | 1 | 5 | 3 | 128 | |
| 414 | IsType | 1 | 419 | 1 | 5 | 13 |
| 415 | Column | 1 | 1 | 3 | 0 | |
| 416 | NotNull | 3 | 419 | 0 | 0 | |
| 417 | String8 | 0 | 3 | 0 | NULL value in tracks.album_id | 0 |
| 418 | Goto | 0 | 424 | 0 | 0 | |
| 419 | IsType | 1 | 427 | 1 | 5 | 27 |
| 420 | Column | 1 | 1 | 3 | 0 | |
| 421 | Affinity | 3 | 1 | 0 | C | 0 |
| 422 | IsType | -1 | 427 | 3 | 5 | 28 |
| 423 | String8 | 0 | 3 | 0 | TEXT value in tracks.album_id | 0 |
| 424 | ResultRow | 3 | 1 | 0 | 0 | |
| 425 | IfPos | 1 | 427 | 1 | 0 | |
| 426 | Halt | 0 | 0 | 0 | 0 | |
| 427 | IsType | 1 | 432 | 2 | 5 | 13 |
| 428 | Column | 1 | 2 | 3 | 0 | |
| 429 | NotNull | 3 | 432 | 0 | 0 | |
| 430 | String8 | 0 | 3 | 0 | NULL value in tracks.name | 0 |
| 431 | Goto | 0 | 434 | 0 | 0 | |
| 432 | IsType | 1 | 437 | 2 | 5 | 28 |
| 433 | String8 | 0 | 3 | 0 | NUMERIC value in tracks.name | 0 |
| 434 | ResultRow | 3 | 1 | 0 | 0 | |
| 435 | IfPos | 1 | 437 | 1 | 0 | |
| 436 | Halt | 0 | 0 | 0 | 0 | |
| 437 | IsType | 1 | 445 | 3 | 5 | 27 |
| 438 | Column | 1 | 3 | 3 | 0 | |
| 439 | Affinity | 3 | 1 | 0 | C | 0 |
| 440 | IsType | -1 | 445 | 3 | 5 | 28 |
| 441 | String8 | 0 | 3 | 0 | TEXT value in tracks.ms | 0 |
| 442 | ResultRow | 3 | 1 | 0 | 0 | |
| 443 | IfPos | 1 | 445 | 1 | 0 | |
| 444 | Halt | 0 | 0 | 0 | 0 | |
| 445 | IsType | 1 | 453 | 4 | 5 | 27 |
| 446 | Column | 1 | 4 | 3 | 0 | |
| 447 | Affinity | 3 | 1 | 0 | C | 0 |
| 448 | IsType | -1 | 453 | 3 | 5 | 28 |
| 449 | String8 | 0 | 3 | 0 | TEXT value in tracks.bytes | 0 |
| 450 | ResultRow | 3 | 1 | 0 | 0 | |
| 451 | IfPos | 1 | 453 | 1 | 0 | |
| 452 | Halt | 0 | 0 | 0 | 0 | |
| 453 | IsType | 1 | 462 | 5 | 5 | 27 |
| 454 | Column | 1 | 5 | 3 | 0 | |
| 455 | RealAffinity | 3 | 0 | 0 | 0 | |
| 456 | Affinity | 3 | 1 | 0 | C | 0 |
| 457 | IsType | -1 | 462 | 3 | 5 | 28 |
| 458 | String8 | 0 | 3 | 0 | TEXT value in tracks.price | 0 |
| 459 | ResultRow | 3 | 1 | 0 | 0 | |
| 460 | IfPos | 1 | 462 | 1 | 0 | |
| 461 | Halt | 0 | 0 | 0 | 0 | |
| 462 | Next | 1 | 412 | 0 | 0 | |
| 463 | VCheck | 0 | 3 | 1 | ��R | 0 |
| 464 | IsNull | 3 | 468 | 0 | 0 | |
| 465 | ResultRow | 3 | 1 | 0 | 0 | |
| 466 | IfPos | 1 | 468 | 1 | 0 | |
| 467 | Halt | 0 | 0 | 0 | 0 | |
| 468 | Null | 0 | 8 | 9 | 0 | |
| 469 | IntegrityCk | 1 | 1 | 8 | [1] | 1 |
| 470 | IsNull | 2 | 476 | 0 | 0 | |
| 471 | String8 | 0 | 3 | 0 | *** in database temp *** | 0 |
| 472 | Concat | 2 | 3 | 3 | 0 | |
| 473 | ResultRow | 3 | 1 | 0 | 0 | |
| 474 | IfPos | 1 | 476 | 1 | 0 | |
| 475 | Halt | 0 | 0 | 0 | 0 | |
| 476 | String8 | 0 | 2 | 0 | wrong # of entries in index | 0 |
| 477 | OpenRead | 1 | 1 | 1 | 5 | 0 |
| 478 | Integer | 0 | 7 | 0 | 0 | |
| 479 | Rewind | 1 | 511 | 0 | 0 | |
| 480 | AddImm | 7 | 1 | 0 | 0 | |
| 481 | Column | 1 | 4 | 3 | 128 | |
| 482 | IsType | 1 | 487 | 0 | 5 | 28 |
| 483 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_temp_master.type | 0 |
| 484 | ResultRow | 3 | 1 | 0 | 0 | |
| 485 | IfPos | 1 | 487 | 1 | 0 | |
| 486 | Halt | 0 | 0 | 0 | 0 | |
| 487 | IsType | 1 | 492 | 1 | 5 | 28 |
| 488 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_temp_master.name | 0 |
| 489 | ResultRow | 3 | 1 | 0 | 0 | |
| 490 | IfPos | 1 | 492 | 1 | 0 | |
| 491 | Halt | 0 | 0 | 0 | 0 | |
| 492 | IsType | 1 | 497 | 2 | 5 | 28 |
| 493 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_temp_master.tbl_name | 0 |
| 494 | ResultRow | 3 | 1 | 0 | 0 | |
| 495 | IfPos | 1 | 497 | 1 | 0 | |
| 496 | Halt | 0 | 0 | 0 | 0 | |
| 497 | IsType | 1 | 505 | 3 | 5 | 27 |
| 498 | Column | 1 | 3 | 3 | 0 | |
| 499 | Affinity | 3 | 1 | 0 | C | 0 |
| 500 | IsType | -1 | 505 | 3 | 5 | 28 |
| 501 | String8 | 0 | 3 | 0 | TEXT value in sqlite_temp_master.rootpage | 0 |
| 502 | ResultRow | 3 | 1 | 0 | 0 | |
| 503 | IfPos | 1 | 505 | 1 | 0 | |
| 504 | Halt | 0 | 0 | 0 | 0 | |
| 505 | IsType | 1 | 510 | 4 | 5 | 28 |
| 506 | String8 | 0 | 3 | 0 | NUMERIC value in sqlite_temp_master.sql | 0 |
| 507 | ResultRow | 3 | 1 | 0 | 0 | |
| 508 | IfPos | 1 | 510 | 1 | 0 | |
| 509 | Halt | 0 | 0 | 0 | 0 | |
| 510 | Next | 1 | 480 | 0 | 0 | |
| 511 | AddImm | 1 | -99 | 0 | 0 | |
| 512 | IfNotZero | 1 | 515 | 0 | 0 | |
| 513 | String8 | 0 | 3 | 0 | ok | 0 |
| 514 | ResultRow | 3 | 1 | 0 | 0 | |
| 515 | Halt | 0 | 0 | 0 | 0 | |
| 516 | String8 | 0 | 3 | 0 | database disk image is malformed | 0 |
| 517 | Goto | 0 | 514 | 0 | 0 | |
| 518 | Halt | 0 | 0 | 0 | 0 | |
| 519 | Transaction | 0 | 0 | 1 | 0 | 1 |
| 520 | Transaction | 1 | 0 | 0 | 0 | 1 |
| 521 | Goto | 0 | 1 | 0 | 0 |
Open it in the EXPLAIN visualizer →
Also in this program: AddImm, Affinity, Column, Concat, Eq, Expire, Goto, Gt, Halt, IfNotZero, IfNullRow, IfPos, Init, Integer, IntegrityCk, IsNull, Multiply, Next, NotNull, Null, OpenRead, RealAffinity, ResultRow, Rewind, String8, Transaction, TypeCheck, VCheck.
What the SQLite documentation says
Jump to P2 if the type of a column in a btree is one of the types specified by the P5 bitmask.
P1 is normally a cursor on a btree for which the row decode cache is valid through at least column P3. In other words, there should have been a prior Column for column P3 or greater. If the cursor is not valid, then this opcode might give spurious results. The the btree row has fewer than P3 columns, then use P4 as the datatype.
If P1 is -1, then P3 is a register number and the datatype is taken from the value in that register.
P5 is a bitmask of data types. SQLITE_INTEGER is the least significant (0x01) bit. SQLITE_FLOAT is the 0x02 bit. SQLITE_TEXT is 0x04. SQLITE_BLOB is 0x08. SQLITE_NULL is 0x10.
WARNING: This opcode does not reliably distinguish between NULL and REAL when P1>=0. If the database contains a NaN value, this opcode will think that the datatype is REAL when it should be NULL. When P1<0 and the value is already stored in register P3, then this opcode does reliably distinguish between NULL and REAL. The problem only arises then P1>=0.
Take the jump to address P2 if and only if the datatype of the value determined by P1 and P3 corresponds to one of the bits in the P5 bitmask.
From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.
← IsTrue · JournalMode →