X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FOracle.pm;h=ae67ebed85648fb1aab659026c4413d533ff68a1;hb=fe736ca0ce99fada4bf4b6d4dc6b2a7a08524827;hp=dbbbfbd5549e529bed4e9a3c08a5ebe280032e2d;hpb=f1f25439dd968b2f88f6de104f0674df589a6830;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm index dbbbfbd..ae67ebe 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm @@ -8,7 +8,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04003'; +our $VERSION = '0.04004'; =head1 NAME @@ -32,6 +32,16 @@ This module is considered experimental and not well tested yet. =cut +sub _setup { + my $self = shift; + + $self->next::method(@_); + + my $dbh = $self->schema->storage->dbh; + $self->{db_schema} ||= $dbh->selectrow_array('SELECT USER FROM DUAL', {}); +} + + sub _table_columns { my ($self, $table) = @_;