X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest.pm;h=42a691b47e42d84c30858b5f876000f6213bab4d;hb=13d62aacb09da7b2acbd79a1a66b3e96ef245447;hp=75599ebf3ae0950c8a26186b4b7e7b3fbc686873;hpb=f820092840ce4cf741a762c80409a0c83197cc2c;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index 75599eb..42a691b 100644 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -187,6 +187,15 @@ sub _database { # no fsync on commit $dbh->do ('PRAGMA synchronous = OFF'); + if ($ENV{DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER}) { + + $storage->throw_exception( + 'PRAGMA reverse_unordered_selects does not work correctly before libsqlite 3.7.9' + ) if $storage->_server_info->{normalized_dbms_version} < 3.007009; + + $dbh->do ('PRAGMA reverse_unordered_selects = ON'); + } + # set a *DBI* disconnect callback, to make sure the physical SQLite # file is still there (i.e. the test does not attempt to delete # an open database, which fails on Win32)