|
1 This contains fixes for two issues |
|
2 |
|
3 a) |
|
4 https://rt.cpan.org/Public/Bug/Display.html?id=111558 |
|
5 https://github.com/DBD-SQLite/DBD-SQLite/commit/008e1291d5b3a8d1787433e33e6ebd13ed63af05 |
|
6 |
|
7 and partially |
|
8 |
|
9 b) |
|
10 https://rt.cpan.org/Public/Bug/Display.html?id=111942 |
|
11 https://github.com/DBD-SQLite/DBD-SQLite/commit/3eb1a184200be3868a58d1586cf49b8f81a22648 |
|
12 https://github.com/DBD-SQLite/DBD-SQLite/commit/f679a6caf73c5cbc3a189acd754b660e55662e45 |
|
13 |
|
14 Both fixed in 1.50 |
|
15 |
|
16 diff --git a/t/virtual_table/11_filecontent_fulltext.t b/t/virtual_table/11_filecontent_fulltext.t |
|
17 index f1c5f64..804fafc 100644 |
|
18 --- a/t/virtual_table/11_filecontent_fulltext.t |
|
19 +++ b/t/virtual_table/11_filecontent_fulltext.t |
|
20 @@ -31,13 +31,21 @@ my @tests = ( |
|
21 lib/DBD/SQLite/VirtualTable/FileContent.pm |
|
22 lib/DBD/SQLite/VirtualTable/PerlData.pm |
|
23 t/lib/Test.pm]], |
|
24 +); |
|
25 + |
|
26 +# The last set of tests tries to use enhanced query syntax. But when |
|
27 +# SQLite is compiled without it's support, the word 'AND' is taken |
|
28 +# literally. |
|
29 +if (grep /ENABLE_FTS3_PARENTHESIS/, DBD::SQLite::compile_options()) { |
|
30 + push @tests, ( |
|
31 ['"use strict" AND "use warnings"' => qw[inc/Test/NoWarnings.pm |
|
32 lib/DBD/SQLite/Constants.pm |
|
33 lib/DBD/SQLite/VirtualTable.pm |
|
34 lib/DBD/SQLite/VirtualTable/FileContent.pm |
|
35 lib/DBD/SQLite/VirtualTable/PerlData.pm |
|
36 ]], |
|
37 -); |
|
38 + ); |
|
39 +} |
|
40 |
|
41 plan tests => 3 + 3 * @tests; |
|
42 |
|
43 --- DBD-SQLite-1.48/t/51_table_column_metadata.t 2016-02-12 10:12:28.334212852 +0100 |
|
44 +++ DBD-SQLite-1.48/t/51_table_column_metadata.t 2016-02-12 10:11:48.355066773 +0100 |
|
45 @@ -6,8 +6,16 @@ BEGIN { |
|
46 $^W = 1; |
|
47 } |
|
48 |
|
49 -use t::lib::Test qw/connect_ok @CALL_FUNCS/; |
|
50 +use DBD::SQLite; |
|
51 use Test::More; |
|
52 + |
|
53 +BEGIN { |
|
54 + if (!grep /^ENABLE_COLUMN_METADATA/, DBD::SQLite::compile_options()) { |
|
55 + plan skip_all => "Column metadata is disabled for this DBD::SQLite"; |
|
56 + } |
|
57 +} |
|
58 + |
|
59 +use t::lib::Test qw/connect_ok @CALL_FUNCS/; |
|
60 use Test::NoWarnings; |
|
61 |
|
62 plan tests => 16 * @CALL_FUNCS + 1; |