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

Fix a failing assert() caused by changes on this branch.

FossilOrigin-Name: d0e21f20bd8643d21c4b88fb75b83939d68e9b7118f7289a164656f11d2ee555
This commit is contained in:
dan
2023-09-23 18:52:22 +00:00
parent 9f811a35b8
commit c18c7523a4
5 changed files with 142 additions and 10 deletions

View File

@@ -4277,6 +4277,7 @@ void sqlite3CreateIndex(
assert( HasRowid(pTab)
|| pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 );
recomputeColumnsNotIndexed(pParse, pIndex);
if( pParse->nErr ) goto exit_create_index;
if( pTblName!=0 && pIndex->nColumn>=pTab->nCol ){
pIndex->isCovering = 1;
for(j=0; j<pTab->nCol; j++){