Test cases for length() of a large blob in an aggregate query.

FossilOrigin-Name: d095fa4bfabd765c8e935ed227a334161097dd34
This commit is contained in:
drh 2012-03-28 02:51:51 +00:00
parent 31ec740a3d
commit 3c888b7d1b
3 changed files with 18 additions and 7 deletions

View File

@ -1,5 +1,5 @@
C Fix\sthe\stypeof()\sand\slength()\soptimization\sso\sthat\sit\sworks\sfor\saggregates\nas\swell\sas\sscalar\squeries.
D 2012-03-28T02:43:20.877
C Test\scases\sfor\slength()\sof\sa\slarge\sblob\sin\san\saggregate\squery.
D 2012-03-28T02:51:51.807
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in 2f37e468503dbe79d35c9f6dffcf3fae1ae9ec20
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@ -497,7 +497,7 @@ F test/fts3sort.test 95be0b19d7e41c44b29014f13ea8bddd495fd659
F test/fts4aa.test 6e7f90420b837b2c685f3bcbe84c868492d40a68
F test/fts4content.test 17b2360f7d1a9a7e5aa8022783f5c5731b6dfd4f
F test/fts4langid.test 2081c357bb6f170f34ef8e08c6abb88002b95c69
F test/func.test 6966ad939b8fccc7d48d18e0c1fc8cd1a9f197e6
F test/func.test 9809b7622d721904a8cc33c1ffb87f46d506ed01
F test/func2.test 772d66227e4e6684b86053302e2d74a2500e1e0f
F test/func3.test 001021e5b88bd02a3b365a5c5fd8f6f49d39744a
F test/fuzz.test 77fd50afc12847af50fcf1941679d90adebadde6
@ -993,7 +993,7 @@ F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06
F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f
F tool/warnings-clang.sh 9f406d66e750e8ac031c63a9ef3248aaa347ef2a
F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
P b899dbeb60752843287e2c6ad3577e1d00f0d587
R f4c337d261ff97dcd84dc2dd2a1e0095
P bc18215a8a660442db6ddeeda4a88df0acffe0f7
R 3ecaca7bd152423dde5d0467891373c7
U drh
Z 615304a5ba3b27e6b38911664d03f093
Z c57e0152e24243ecb61f7c7f2f11b01f

View File

@ -1 +1 @@
bc18215a8a660442db6ddeeda4a88df0acffe0f7
d095fa4bfabd765c8e935ed227a334161097dd34

View File

@ -1278,6 +1278,17 @@ do_test func-29.4 {
if {$x>100} {set x many}
set x
} {many}
do_test func-29.5 {
db close
sqlite3 db test.db
sqlite3_db_status db CACHE_MISS 1
db eval {SELECT sum(length(x)) FROM t29}
} {1000009}
do_test func-29.6 {
set x [lindex [sqlite3_db_status db CACHE_MISS 1] 1]
if {$x<5} {set x 1}
set x
} {1}
finish_test