1 use DBIx::Class::Schema::Loader::Optional::Dependencies
2 -skip_all_without => qw(test_backcompat test_rdbms_oracle);
6 use lib qw(t/backcompat/0.04006/lib);
7 use dbixcsl_common_tests;
10 my $dsn = $ENV{DBICTEST_ORA_DSN} || '';
11 my $user = $ENV{DBICTEST_ORA_USER} || '';
12 my $password = $ENV{DBICTEST_ORA_PASS} || '';
14 dbixcsl_common_tests->new(
16 auto_inc_pk => 'INTEGER NOT NULL PRIMARY KEY',
18 my ($table, $col) = @_;
20 qq{ CREATE SEQUENCE ${table}_${col}_seq START WITH 1 INCREMENT BY 1},
22 CREATE OR REPLACE TRIGGER ${table}_${col}_trigger
23 BEFORE INSERT ON ${table}
26 SELECT ${table}_${col}_seq.nextval INTO :NEW.${col} FROM dual;
31 auto_inc_drop_cb => sub {
32 my ($table, $col) = @_;
33 return qq{ DROP SEQUENCE ${table}_${col}_seq };
37 password => $password,