| 1 | package DBIO::Firebird::Test::SequenceTest; | ||
| 2 | # ABSTRACT: Test result class for Firebird sequence/generator tests | ||
| 3 | |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.900007'; | |
| 8 | |||
| 9 | 1 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | __PACKAGE__->table('sequence_test'); | |
| 12 | |||
| 13 | 1 | __PACKAGE__->add_columns( | |
| 14 | pkid1 => { | ||
| 15 | data_type => 'integer', | ||
| 16 | sequence => 'pkid1_seq', | ||
| 17 | is_auto_increment => 1, | ||
| 18 | auto_nextval => 1, | ||
| 19 | }, | ||
| 20 | pkid2 => { | ||
| 21 | data_type => 'integer', | ||
| 22 | # Created unquoted in the test DDL, so Firebird folds it to upper case; | ||
| 23 | # the other two generators are created quoted (lower case). | ||
| 24 | sequence => 'PKID2_SEQ', | ||
| 25 | is_auto_increment => 1, | ||
| 26 | auto_nextval => 1, | ||
| 27 | }, | ||
| 28 | nonpkid => { | ||
| 29 | data_type => 'integer', | ||
| 30 | sequence => 'nonpkid_seq', | ||
| 31 | is_auto_increment => 1, | ||
| 32 | auto_nextval => 1, | ||
| 33 | }, | ||
| 34 | name => { | ||
| 35 | data_type => 'varchar', | ||
| 36 | size => 100, | ||
| 37 | is_nullable => 1, | ||
| 38 | }, | ||
| 39 | ); | ||
| 40 | |||
| 41 | 1 | __PACKAGE__->set_primary_key('pkid1', 'pkid2'); | |
| 42 | |||
| 43 | 1 | 1; | |
| 44 | |||
| 45 | __END__ | ||