From 52ba9a72036d2bfc631157c737f91ed61093713d Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Mon, 13 Jul 2026 15:48:26 -0400 Subject: [PATCH] SQLite tests: account for UTF-16 STAT4 sample bytes Keep analyze9's memory-accounting assertion, but use the encoding-correct allocation delta for SQLite's utf16 permutation. --- ...analyze9-account-for-utf16-stat4-sample-bytes.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/registry/sqlite/patches/0006-analyze9-account-for-utf16-stat4-sample-bytes.patch diff --git a/packages/registry/sqlite/patches/0006-analyze9-account-for-utf16-stat4-sample-bytes.patch b/packages/registry/sqlite/patches/0006-analyze9-account-for-utf16-stat4-sample-bytes.patch new file mode 100644 index 0000000000..126ab442d8 --- /dev/null +++ b/packages/registry/sqlite/patches/0006-analyze9-account-for-utf16-stat4-sample-bytes.patch @@ -0,0 +1,10 @@ +--- test/analyze9.test ++++ test/analyze9.test +@@ -813,2 +813,6 @@ do_test 16.1 { +- expr {$nByte2 > $nByte+900 && $nByte2 < $nByte+1100} ++ set minDelta 900 ++ set maxDelta 1100 ++ if {[permutation]=="utf16"} { set minDelta 1900; set maxDelta 2100 } ++ ++ expr {$nByte2 > $nByte+$minDelta && $nByte2 < $nByte+$maxDelta} + } {1}