- Remove dependency on List::MoreUtils and Sub::Name
- Ensure schema files are generated as binary files on Windows
- Fix overwrite_modifications not overwriting if the table hasn't changed
+ - Filter out disabled constraints and triggers for Oracle (GH#5)
0.07042 2014-08-20
- Fix unescaped left braces in regexes in tests
oalders: Olaf Alders <olaf@wundersolutions.com>
+mephinet: Philipp Gortan <philipp.gortan@apa.at>
+
... and lots of other folks. If we forgot you, please write the current
maintainer or RT.
my $deferrable_sth = $self->dbh->prepare_cached(<<'EOF');
select deferrable from all_constraints
-where owner = ? and table_name = ? and constraint_name = ?
+where owner = ? and table_name = ? and constraint_name = ? and status = 'ENABLED'
EOF
foreach my $rel (@$rels) {
WHERE acc.table_name=? AND acc.owner = ?
AND ac.table_name = acc.table_name AND ac.owner = acc.owner
AND acc.constraint_name = ac.constraint_name
- AND ac.constraint_type='U'
+ AND ac.constraint_type = 'U'
+ AND ac.status = 'ENABLED'
ORDER BY acc.position
EOF
my $sth = $self->dbh->prepare_cached(<<'EOF', {}, 1);
SELECT trigger_body
FROM all_triggers
-WHERE table_name = ? AND table_owner = ?
+WHERE table_name = ? AND table_owner = ? AND status = 'ENABLED'
AND upper(trigger_type) LIKE '%BEFORE EACH ROW%' AND lower(triggering_event) LIKE '%insert%'
EOF