X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FOracle.pm;h=7ed0c605f3cdc4c75ef89323fb8eaf53577f081b;hb=075aff9752f9c6ec020cc040b6f70e131be0f4ad;hp=19be9aa507bed75901da2c8216b910ac6a18d2b5;hpb=59f547384b29161d10f97f931f9149e26abd13ca;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 19be9aa..7ed0c60 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm @@ -46,15 +46,10 @@ sub _setup { } } - -sub _table_columns { +sub _table_as_sql { my ($self, $table) = @_; - my $dbh = $self->schema->storage->dbh; - - my $sth = $dbh->prepare($self->schema->storage->sql_maker->select($table, undef, \'1 = 0')); - $sth->execute; - return \@{$sth->{NAME_lc}}; + return $self->_quote_table_name($table); } sub _tables_list { @@ -75,7 +70,7 @@ sub _tables_list { push @tables, $1 if $table =~ /\A(\w+)\z/; } - return @tables; + return $self->_filter_tables(@tables); } sub _table_uniq_info {