fix server disconnect checking for select outside of transaction
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / ExplodingStorage.pm
CommitLineData
0b5dee17 1package DBICTest::ExplodingStorage::Sth;
2
3sub execute {
4 die "Kablammo!";
5}
6
7sub bind_param {}
8
9package DBICTest::ExplodingStorage;
10
11use strict;
12use warnings;
13
14use base 'DBIx::Class::Storage::DBI::SQLite';
15
16my $count = 0;
17sub sth {
18 my ($self, $sql) = @_;
19 return bless {}, "DBICTest::ExplodingStorage::Sth" unless $count++;
20 return $self->next::method($sql);
21}
22
23sub connected {
24 return 0 if $count == 1;
25 return shift->next::method(@_);
26}
27
281;