1From adcc1df0049e0093cb94c867bd2be8c9fe242a61 Mon Sep 17 00:00:00 2001
2From: Peter Rabbitson <ribasushi@cpan.org>
3Date: Tue, 13 Sep 2016 17:15:48 +0200
4Subject: [PATCH] Fix for upcoming (not yet available via DBD::SQLite)
5 libsqlite version
6
7---
8 Changes | 2 ++
9 t/prefetch/grouped.t | 2 +-
10 2 files changed, 3 insertions(+), 1 deletion(-)
11
12diff --git a/t/prefetch/grouped.t b/t/prefetch/grouped.t
13index 4aad6b1..c0d2224 100644
14--- a/t/prefetch/grouped.t
15+++ b/t/prefetch/grouped.t
16@@ -101,7 +101,7 @@ my @cdids = sort $cd_rs->get_column ('cdid')->all;
17
18 # add an extra track to one of the cds, and then make sure we can get it on top
19 # (check if limit works)
20- my $top_cd = $cd_rs->slice (1,1)->next;
21+ my $top_cd = $cd_rs->search({}, { order_by => 'cdid' })->slice (1,1)->next;
22 $top_cd->create_related ('tracks', {
23 title => 'over the top',
24 });