1 package dbixcsl_mssql_extra_tests;
15 CREATE TABLE [${vendor}_loader_test1.dot] (
16 id INT IDENTITY NOT NULL PRIMARY KEY,
21 drop => [ "[${vendor}_loader_test1.dot]" ],
24 my ($schema, $monikers, $classes) = @_;
26 # Test that the table above (with '.' in name) gets loaded correctly.
27 my $vendor_titlecased = "\u\L$vendor";
30 $schema->resultset("${vendor_titlecased}LoaderTest1Dot") }),
33 ok((my $from = eval { $rs->result_source->from }),
34 'got an $rsrc->from');
36 is ref($from), 'SCALAR', '->table is a scalar ref';
38 is eval { $$from }, "[${vendor}_loader_test1.dot]",
39 '->table name is correct';
41 # Test that identity columns do not have 'identity' in the data_type, and do
42 # have is_auto_increment.
43 my $identity_col_info = $schema->resultset('LoaderTest10')
44 ->result_source->column_info('id10');
46 is $identity_col_info->{data_type}, 'int',
47 q{'INT IDENTITY' column has data_type => 'int'};
49 is $identity_col_info->{is_auto_increment}, 1,
50 q{'INT IDENTITY' column has is_auto_increment => 1};