1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Add assert() and ALWAYS() to identify two unreachable branches.

FossilOrigin-Name: 8fa254aa6329bdd085b8e2c78d8e8a698b418eda8b2d48e0082dd9cd428cef29
This commit is contained in:
drh
2018-09-07 18:52:25 +00:00
parent d5e6fef2a1
commit a488ec9f0a
4 changed files with 13 additions and 11 deletions

View File

@@ -1539,7 +1539,7 @@ static void renameTableTest(
else if( sParse.pNewTrigger ){
rc = renameResolveTrigger(&sParse, bTemp ? 0 : zDb);
if( rc==SQLITE_OK ){
if( ALWAYS(rc==SQLITE_OK) ){
int i1 = sqlite3SchemaToIndex(db, sParse.pNewTrigger->pTabSchema);
int i2 = sqlite3FindDbName(db, zDb);
if( i1==i2 ) sqlite3_result_int(context, 1);