diff options
author | drh <> | 2021-02-19 02:30:02 +0000 |
---|---|---|
committer | drh <> | 2021-02-19 02:30:02 +0000 |
commit | c90fa01dbfc9b94a9f07583d254ce785ee232fb9 (patch) | |
tree | 8dce05e1cb5766576158672327e8ab8a56b49f26 /src/alter.c | |
parent | 0336140cd9913671601dd184072cd14361d53bb0 (diff) | |
download | sqlite-c90fa01dbfc9b94a9f07583d254ce785ee232fb9.tar.gz sqlite-c90fa01dbfc9b94a9f07583d254ce785ee232fb9.zip |
Add a NEVER() to an unreachable branch in the DROP COLUMN logic.
FossilOrigin-Name: 963f498ae64cf7530fb7a405fa476c411ad66523f62f5eefa5a16596cd19a481
Diffstat (limited to 'src/alter.c')
-rw-r--r-- | src/alter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alter.c b/src/alter.c index 8f432b38c..a4caf7159 100644 --- a/src/alter.c +++ b/src/alter.c @@ -1849,7 +1849,7 @@ void sqlite3AlterDropColumn(Parse *pParse, SrcList *pSrc, Token *pName){ /* Look up the table being altered. */ assert( pParse->pNewTable==0 ); assert( sqlite3BtreeHoldsAllMutexes(db) ); - if( db->mallocFailed ) goto exit_drop_column; + if( NEVER(db->mallocFailed) ) goto exit_drop_column; pTab = sqlite3LocateTableItem(pParse, 0, &pSrc->a[0]); if( !pTab ) goto exit_drop_column; |