--- /dev/null
+package DBIx::Class::Storage::DBI::ODBC::Firebird;
+
+use strict;
+use warnings;
+use base qw/DBIx::Class::Storage::DBI::InterBase/;
+use mro 'c3';
+
+1;
+
+=head1 NAME
+
+DBIx::Class::Storage::DBI::ODBC::Firebird - Driver for using the Firebird RDBMS
+through ODBC
+
+=head1 SYNOPSIS
+
+All functionality is provided by L<DBIx::Class::Storage::DBI::Interbase>, see
+that module for details.
+
+=head1 AUTHOR
+
+See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>.
+
+=head1 LICENSE
+
+You may distribute this code under the same terms as Perl itself.
+
+=cut
use Test::Exception;
use lib qw(t/lib);
use DBICTest;
+use Scope::Guard ();
# tests stolen from 749sybase_asa.t
push @handles_to_clean, $dbh;
- eval { $dbh->do("DROP TABLE artist") };
+ my $sg = Scope::Guard->new(\&cleanup);
+ eval { $dbh->do("DROP TABLE artist") };
$dbh->do(<<EOF);
CREATE TABLE artist (
artistid INT PRIMARY KEY,
rank INT DEFAULT 13
)
EOF
+ eval { $dbh->do("DROP GENERATOR gen_artist_artistid") };
$dbh->do('CREATE GENERATOR gen_artist_artistid');
+ eval { $dbh->do("DROP TRIGGER artist_bi") };
$dbh->do(<<EOF);
CREATE TRIGGER artist_bi FOR artist
ACTIVE BEFORE INSERT POSITION 0
done_testing;
# clean up our mess
-END {
+
+sub cleanup {
foreach my $dbh (@handles_to_clean) {
- eval { $dbh->do("DROP TABLE $_") } for qw/artist bindtype_test/;
+ eval { $dbh->do('DROP TRIGGER artist_bi') };
+ diag $@ if $@;
+ eval { $dbh->do('DROP GENERATOR gen_artist_artistid') };
+ diag $@ if $@;
+ foreach my $table (qw/artist bindtype_test/) {
+ $dbh->do("DROP TABLE $table");
+ diag $@ if $@;
+ }
}
}