aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dbix-class/0002-sqlite-3.14.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 15:15:39 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commit1c9cff5f94016d37ca0fa93a298638000b4a3b60 (patch)
tree40fbbacebeecd46f2a3dc11ff45f6721a91ad30a /testing/perl-dbix-class/0002-sqlite-3.14.patch
parent0e2173e94d31b7cee66a245f2439f2cc151782f9 (diff)
downloadaports-1c9cff5f94016d37ca0fa93a298638000b4a3b60.tar.bz2
aports-1c9cff5f94016d37ca0fa93a298638000b4a3b60.tar.xz
testing/perl-dbix-class: new aport
Extensible and flexible object <-> relational mapper http://search.cpan.org/dist/DBIx-Class/
Diffstat (limited to 'testing/perl-dbix-class/0002-sqlite-3.14.patch')
-rw-r--r--testing/perl-dbix-class/0002-sqlite-3.14.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-dbix-class/0002-sqlite-3.14.patch b/testing/perl-dbix-class/0002-sqlite-3.14.patch
new file mode 100644
index 0000000000..c4b8d723a2
--- /dev/null
+++ b/testing/perl-dbix-class/0002-sqlite-3.14.patch
@@ -0,0 +1,48 @@
+Description: Drop test which expected SQLite behaviour from before 3.14
+ Cf. https://rt.cpan.org/Public/Bug/Display.html?id=118395#txn-1676851
+ .
+ Thanks to Peter Rabbitson for the help.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/841573
+Forwarded: not-needed
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2016-10-21
+
+--- a/t/resultset/update_delete.t
++++ b/t/resultset/update_delete.t
+@@ -138,35 +138,6 @@
+ ], 'Correct null-delete-SQL with multijoin without pruning' );
+
+
+-# try the same sql with forced multicolumn in
+-$schema->is_executed_sql_bind( sub {
+- local $schema->storage->{_use_multicolumn_in} = 1;
+-
+- # this can't actually execute on sqlite
+- eval { $fks_multi->update ({ read_count => \ 'read_count + 1' }) };
+-}, [[
+- 'UPDATE fourkeys
+- SET read_count = read_count + 1
+- WHERE (
+- (foo, bar, hello, goodbye) IN (
+- SELECT me.foo, me.bar, me.hello, me.goodbye
+- FROM fourkeys me
+- LEFT JOIN fourkeys_to_twokeys fourkeys_to_twokeys ON
+- fourkeys_to_twokeys.f_bar = me.bar
+- AND fourkeys_to_twokeys.f_foo = me.foo
+- AND fourkeys_to_twokeys.f_goodbye = me.goodbye
+- AND fourkeys_to_twokeys.f_hello = me.hello
+- WHERE ( bar = ? OR bar = ? ) AND ( foo = ? OR foo = ? ) AND fourkeys_to_twokeys.pilot_sequence != ? AND ( goodbye = ? OR goodbye = ? ) AND ( hello = ? OR hello = ? ) AND sensors != ?
+- ORDER BY foo, bar, hello, goodbye
+- )
+- )
+- ',
+- ( 1, 2) x 2,
+- 666,
+- ( 1, 2) x 2,
+- 'c',
+-]], 'Correct update-SQL with multicolumn in support' );
+-
+ $schema->is_executed_sql_bind( sub {
+ $fks->search({ 'twokeys.artist' => { '!=' => 666 } })->update({ read_count => \ 'read_count + 1' });
+ }, [