15fd5c3
Description: Fix cleanup in tests.
15fd5c3
 Since SQLite 3.15, VACUUM either needs no arguments, or the name of an
15fd5c3
 attached database.
15fd5c3
 . 
15fd5c3
 From https://sqlite.org/lang_vacuum.html :
15fd5c3
 Compatibility Warning: The ability to vacuum attached databases was added
15fd5c3
 in version 3.15.0 (2016-10-14). Prior to that, a schema-name added to the
15fd5c3
 VACUUM statement would be silently ignored and the "main" schema would be
15fd5c3
 vacuumed.
15fd5c3
 .
15fd5c3
 That means that 'VACUUM ANALYZE' never did what it was probably supposed to
15fd5c3
 do.
15fd5c3
 .
15fd5c3
 Maybe 'VACUUM; ANALYZE' works as well. -- And besides this change in the
15fd5c3
 testsuite, the documentation for cleanup() in the POD would need to be
15fd5c3
 updated as well.
15fd5c3
 . 
15fd5c3
Origin: vendor
15fd5c3
Bug-Debian: https://bugs.debian.org/841545
15fd5c3
Author: gregor herrmann <gregoa@debian.org>
15fd5c3
Last-Update: 2016-10-21
15fd5c3
15fd5c3
--- a/t/10_cleanup.t
15fd5c3
+++ b/t/10_cleanup.t
15fd5c3
@@ -29,7 +29,7 @@
15fd5c3
 use strict;
15fd5c3
 use ORLite {
15fd5c3
 	file    => '$file',
15fd5c3
-	cleanup => 'VACUUM ANALYZE',
15fd5c3
+	cleanup => 'VACUUM',
15fd5c3
 };
15fd5c3
 
15fd5c3
 1;
15fd5c3
--- a/t/11_cleanup.t
15fd5c3
+++ b/t/11_cleanup.t
15fd5c3
@@ -29,7 +29,7 @@
15fd5c3
 use strict;
15fd5c3
 use ORLite {
15fd5c3
 	file    => '$file',
15fd5c3
-	cleanup => 'VACUUM ANALYZE',
15fd5c3
+	cleanup => 'VACUUM',
15fd5c3
 };
15fd5c3
 
15fd5c3
 1;