aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <>2025-02-21 17:03:22 +0000
committerdrh <>2025-02-21 17:03:22 +0000
commitce25007db8df01e3271486574d520d4dea4cf97a (patch)
treeba6a3d33af56c5a0d13d80ab8eb7447e69319ce6 /src/insert.c
parent220260b8965eb264cab8cb5ee42baacb08ef1eb4 (diff)
downloadsqlite-ce25007db8df01e3271486574d520d4dea4cf97a.tar.gz
sqlite-ce25007db8df01e3271486574d520d4dea4cf97a.zip
Detect when a UNIQUE or PRIMARY KEY on a WITHOUT ROWID table would need
to use more than SQLITE_LIMIT_COLUMN columns and raise an error. Also include some unrelated compiler warning fixes. FossilOrigin-Name: d7729dbbf231d57cbcaaa5004d0a9c4957f112dd6520052995b232aa521c0ca3
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index c1ca1897e..7dc9bfd8b 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -693,7 +693,7 @@ Select *sqlite3MultiValues(Parse *pParse, Select *pLeft, ExprList *pRow){
f = (f & pLeft->selFlags);
}
pSelect = sqlite3SelectNew(pParse, pRow, 0, 0, 0, 0, 0, f, 0);
- pLeft->selFlags &= ~SF_MultiValue;
+ pLeft->selFlags &= ~(u32)SF_MultiValue;
if( pSelect ){
pSelect->op = TK_ALL;
pSelect->pPrior = pLeft;