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

Remove the SQLITE_PREPARE_SAFEOPT flag. The name is obsolete and it is at the

wrong level.  Instead use the SF_UpdateFrom flags on the Select object.

FossilOrigin-Name: 78723a9a7e72b42d28fc5645661da17f20cedcf864819b861800ad9340007be1
This commit is contained in:
drh
2022-12-09 18:26:15 +00:00
parent e974e73f69
commit 93f41e22d4
6 changed files with 19 additions and 18 deletions

View File

@@ -263,12 +263,12 @@ static void updateFromSelect(
}
}
pSelect = sqlite3SelectNew(pParse, pList,
pSrc, pWhere2, pGrp, 0, pOrderBy2, SF_UFSrcCheck|SF_IncludeHidden, pLimit2
pSrc, pWhere2, pGrp, 0, pOrderBy2,
SF_UFSrcCheck|SF_IncludeHidden|SF_UpdateFrom, pLimit2
);
if( pSelect ) pSelect->selFlags |= SF_OrderByReqd;
sqlite3SelectDestInit(&dest, eDest, iEph);
dest.iSDParm2 = (pPk ? pPk->nKeyCol : -1);
pParse->prepFlags |= SQLITE_PREPARE_SAFEOPT;
sqlite3Select(pParse, pSelect, &dest);
sqlite3SelectDelete(db, pSelect);
}