aboutsummaryrefslogtreecommitdiff
path: root/src/window.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/window.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/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 8373e3641..948b0728a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -995,7 +995,7 @@ int sqlite3WindowRewrite(Parse *pParse, Select *p){
p->pWhere = 0;
p->pGroupBy = 0;
p->pHaving = 0;
- p->selFlags &= ~SF_Aggregate;
+ p->selFlags &= ~(u32)SF_Aggregate;
p->selFlags |= SF_WinRewrite;
/* Create the ORDER BY clause for the sub-select. This is the concatenation