Skip to content

Commit

Permalink
bump SQLITE_LIMIT_LENGTH to 2 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik-Baetens committed Sep 10, 2024
1 parent 4250d5c commit 3889162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/util/sqlite.c++
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ void SqliteDatabase::setupSecurity() {
// 2. Reduce limits
// We use the suggested limits from the web site. Note that sqlite3_limit() does NOT return an
// error code; it returns the old limit.
sqlite3_limit(db, SQLITE_LIMIT_LENGTH, 1000000);
sqlite3_limit(db, SQLITE_LIMIT_LENGTH, 2000000);
sqlite3_limit(db, SQLITE_LIMIT_SQL_LENGTH, 100000);
sqlite3_limit(db, SQLITE_LIMIT_COLUMN, 100);
sqlite3_limit(db, SQLITE_LIMIT_EXPR_DEPTH, 100);
Expand Down

0 comments on commit 3889162

Please sign in to comment.