Commit | Line | Data |
2edf3352 |
1 | package # hide from PAUSE |
2 | DBICTest::Schema::VaryingMAX; |
3 | |
4 | use base qw/DBICTest::BaseResult/; |
5 | |
6 | # Test VARCHAR(MAX) type for MSSQL (used in ADO tests) |
7 | |
8 | __PACKAGE__->table('varying_max_test'); |
9 | |
10 | __PACKAGE__->add_columns( |
11 | 'id' => { |
12 | data_type => 'integer', |
13 | is_auto_increment => 1, |
14 | }, |
15 | 'varchar_max' => { |
16 | data_type => 'varchar', |
17 | size => 'max', |
18 | is_nullable => 1, |
19 | }, |
20 | 'nvarchar_max' => { |
21 | data_type => 'nvarchar', |
22 | size => 'max', |
23 | is_nullable => 1, |
24 | }, |
25 | 'varbinary_max' => { |
26 | data_type => 'varbinary(max)', # alternately |
27 | size => undef, |
28 | is_nullable => 1, |
29 | }, |
30 | ); |
31 | |
32 | __PACKAGE__->set_primary_key('id'); |
33 | |
34 | 1; |