1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add a NEVER() around a branch in sqlite3ExprAffinity() that is designed to

prevent an infinite loop, but which can now never be reached due to recent
changes.

FossilOrigin-Name: da0b794852f8ccba5bd30395892044ec71b148075608406867785395e1f50b31
This commit is contained in:
drh
2024-06-29 12:22:32 +00:00
parent 75bdf00e89
commit 6adbdac676
3 changed files with 11 additions and 9 deletions

View File

@@ -85,7 +85,9 @@ char sqlite3ExprAffinity(const Expr *pExpr){
op = pExpr->op;
continue;
}
if( op!=TK_REGISTER || (op = pExpr->op2)==TK_REGISTER ) break;
if( op!=TK_REGISTER ) break;
op = pExpr->op2;
if( NEVER( op==TK_REGISTER ) ) break;
}
return pExpr->affExpr;
}