Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / VaryingMAX.pm
1 package # hide from PAUSE
2     DBICTest::Schema::VaryingMAX;
3
4 use warnings;
5 use strict;
6
7 use base qw/DBICTest::BaseResult/;
8
9 # Test VARCHAR(MAX) type for MSSQL (used in ADO tests)
10
11 __PACKAGE__->table('varying_max_test');
12
13 __PACKAGE__->add_columns(
14   'id' => {
15     data_type => 'integer',
16     is_auto_increment => 1,
17   },
18   'varchar_max' => {
19     data_type => 'varchar',
20     size => 'max',
21     is_nullable => 1,
22   },
23   'nvarchar_max' => {
24     data_type => 'nvarchar',
25     size => 'max',
26     is_nullable => 1,
27   },
28   'varbinary_max' => {
29     data_type => 'varbinary(max)', # alternately
30     size => undef,
31     is_nullable => 1,
32   },
33 );
34
35 __PACKAGE__->set_primary_key('id');
36
37 1;