1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Remove an unreachable branch from the OP_Affinity suppression logic.

FossilOrigin-Name: 598727e6dae87f133c658fa125684f6ad978be60
This commit is contained in:
drh
2009-11-19 15:44:53 +00:00
parent c4c54eed2e
commit 88376ca791
3 changed files with 21 additions and 10 deletions

View File

@@ -1336,8 +1336,9 @@ int sqlite3ExprNeedsNoAffinityChange(const Expr *p, char aff){
return 1;
}
case TK_COLUMN: {
return p->iTable>=0 && p->iColumn<0
&& (aff==SQLITE_AFF_INTEGER || aff==SQLITE_AFF_NUMERIC);
assert( p->iTable>=0 ); /* p cannot be part of a CHECK constraint */
return p->iColumn<0
&& (aff==SQLITE_AFF_INTEGER || aff==SQLITE_AFF_NUMERIC);
}
default: {
return 0;