1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Remove an unreachable condition. Replace it with an assert().

FossilOrigin-Name: 7d5fc1a339cf4f3597ab6a5f3e7101884d2d7673
This commit is contained in:
drh
2012-12-03 19:42:39 +00:00
parent fc5e546641
commit 5f53aac2e7
3 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ void sqlite3OpenTable(
int opcode /* OP_OpenRead or OP_OpenWrite */
){
Vdbe *v;
if( IsVirtual(pTab) ) return;
assert( !IsVirtual(pTab) );
v = sqlite3GetVdbe(p);
assert( opcode==OP_OpenWrite || opcode==OP_OpenRead );
sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);