From: Dagfinn Ilmari Mannsåker Date: Sun, 8 Jun 2008 13:18:48 +0000 (+0000) Subject: Fix Oracle constraint detection for non-owned schemas X-Git-Tag: 0.04006~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76c488a69ac174f40860cfbae3faf5d1a72d2be8;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Fix Oracle constraint detection for non-owned schemas --- diff --git a/Changes b/Changes index 020a11b..a3320c3 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension DBIx::Class::Schema::Loader +0.04006 Not Yet Released + - Fix Oracle constraint detection for non-owned schemas (RT #35732) + 0.04005 Sat Apr 05, 2008 - Fix DB2 support - Add support for load_namespaces-style class layout diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm index 88982b9..102a401 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm @@ -80,10 +80,10 @@ sub _table_uniq_info { my $sth = $dbh->prepare_cached( q{ - SELECT constraint_name, ucc.column_name - FROM user_constraints JOIN user_cons_columns ucc USING (constraint_name) - WHERE ucc.table_name=? AND constraint_type='U' - ORDER BY ucc.position + SELECT constraint_name, acc.column_name + FROM all_constraints JOIN all_cons_columns acc USING (constraint_name) + WHERE acc.table_name=? AND constraint_type='U' + ORDER BY acc.position }, {}, 1);