aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authordrh <>2024-12-12 15:11:27 +0000
committerdrh <>2024-12-12 15:11:27 +0000
commit35d302ccb1d79b801d0b8c6a564ab6c1e492df43 (patch)
tree50014615d74acfffb8a20b6fcf6b8dfe5afdce0e /src/window.c
parent6e53f67c63771b72d5419265038f428c34fa99d5 (diff)
downloadsqlite-35d302ccb1d79b801d0b8c6a564ab6c1e492df43.tar.gz
sqlite-35d302ccb1d79b801d0b8c6a564ab6c1e492df43.zip
Increase the maximum number of arguments on an SQL function to 1000 with the
capability to increase it further up to 32767 using a compile-time option. FossilOrigin-Name: e8d7d68ba0bb0bc2f948db5d9966990a5d23597fc3658b7cd0bc99d53c7353a9
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 acc6ea854..8373e3641 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1751,7 +1751,7 @@ static void windowAggStep(
sqlite3VdbeAddOp3(v, bInverse? OP_AggInverse : OP_AggStep,
bInverse, regArg, pWin->regAccum);
sqlite3VdbeAppendP4(v, pFunc, P4_FUNCDEF);
- sqlite3VdbeChangeP5(v, (u8)nArg);
+ sqlite3VdbeChangeP5(v, (u16)nArg);
if( pWin->bExprArgs ){
sqlite3ReleaseTempRange(pParse, regArg, nArg);
}