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

Refactor names of column index transformation functions, for clarity.

Get generated columns working with ALTER TABLE RENAME COLUMN.

FossilOrigin-Name: 27ab41c9102e7801ff829488fc123a8040da008bef373d6704efbe2f93e1da90
This commit is contained in:
drh
2019-10-19 13:29:10 +00:00
parent f95909c764
commit b9bcf7ca60
12 changed files with 80 additions and 57 deletions

View File

@@ -5379,9 +5379,9 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
x = pPk->aiColumn[x];
assert( x>=0 );
}else{
x = sqlite3ColumnOfStorage(pTab,x);
x = sqlite3StorageColumnToTable(pTab,x);
}
x = sqlite3ColumnOfIndex(pIdx, x);
x = sqlite3TableColumnToIndex(pIdx, x);
if( x>=0 ){
pOp->p2 = x;
pOp->p1 = pLevel->iIdxCur;