From 569c6676a6ddb0ff73821d7693b5e18ddef809b9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 16 Oct 2014 22:51:35 -0400 Subject: Imported Upstream version 3.2.0 --- test/analyze.test | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test/analyze.test') diff --git a/test/analyze.test b/test/analyze.test index 362702a..c445084 100644 --- a/test/analyze.test +++ b/test/analyze.test @@ -288,7 +288,7 @@ do_test analyze-4.3 { } {} # Verify that DROP TABLE and DROP INDEX remove entries from the -# sqlite_stat1 and sqlite_stat3 tables. +# sqlite_stat1, sqlite_stat3 and sqlite_stat4 tables. # do_test analyze-5.0 { execsql { @@ -306,12 +306,13 @@ do_test analyze-5.0 { SELECT DISTINCT tbl FROM sqlite_stat1 ORDER BY 1; } } {t3i1 t3i2 t3i3 t4i1 t4i2 t3 t4} -ifcapable stat3 { +ifcapable stat4||stat3 { + ifcapable stat4 {set stat sqlite_stat4} else {set stat sqlite_stat3} do_test analyze-5.1 { - execsql { - SELECT DISTINCT idx FROM sqlite_stat3 ORDER BY 1; - SELECT DISTINCT tbl FROM sqlite_stat3 ORDER BY 1; - } + execsql " + SELECT DISTINCT idx FROM $stat ORDER BY 1; + SELECT DISTINCT tbl FROM $stat ORDER BY 1; + " } {t3i1 t3i2 t3i3 t4i1 t4i2 t3 t4} } do_test analyze-5.2 { @@ -321,12 +322,12 @@ do_test analyze-5.2 { SELECT DISTINCT tbl FROM sqlite_stat1 ORDER BY 1; } } {t3i1 t3i3 t4i1 t4i2 t3 t4} -ifcapable stat3 { +ifcapable stat4||stat3 { do_test analyze-5.3 { - execsql { - SELECT DISTINCT idx FROM sqlite_stat3 ORDER BY 1; - SELECT DISTINCT tbl FROM sqlite_stat3 ORDER BY 1; - } + execsql " + SELECT DISTINCT idx FROM $stat ORDER BY 1; + SELECT DISTINCT tbl FROM $stat ORDER BY 1; + " } {t3i1 t3i3 t4i1 t4i2 t3 t4} } do_test analyze-5.4 { @@ -336,12 +337,12 @@ do_test analyze-5.4 { SELECT DISTINCT tbl FROM sqlite_stat1 ORDER BY 1; } } {t4i1 t4i2 t4} -ifcapable stat3 { +ifcapable stat4||stat3 { do_test analyze-5.5 { - execsql { - SELECT DISTINCT idx FROM sqlite_stat3 ORDER BY 1; - SELECT DISTINCT tbl FROM sqlite_stat3 ORDER BY 1; - } + execsql " + SELECT DISTINCT idx FROM $stat ORDER BY 1; + SELECT DISTINCT tbl FROM $stat ORDER BY 1; + " } {t4i1 t4i2 t4} } @@ -360,5 +361,4 @@ do_test analyze-99.1 { } } {1 {malformed database schema (sqlite_stat1) - near "nonsense": syntax error}} - finish_test -- cgit v1.2.3