fix default_value for all other backends, fix bug with quoted Pg tables from $dbh...
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 16mssql_odbc_common.t
1 use strict;
2 use lib qw(t/lib);
3 use dbixcsl_common_tests;
4 use dbixcsl_mssql_extra_tests;
5
6 my $dsn      = $ENV{DBICTEST_MSSQL_ODBC_DSN} || '';
7 my $user     = $ENV{DBICTEST_MSSQL_ODBC_USER} || '';
8 my $password = $ENV{DBICTEST_MSSQL_ODBC_PASS} || '';
9
10 my $tester = dbixcsl_common_tests->new(
11     vendor      => 'mssql',
12     auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
13     default_function     => 'getdate()',
14     default_function_def => 'DATETIME DEFAULT getdate()',
15     dsn         => $dsn,
16     user        => $user,
17     password    => $password,
18     extra       => dbixcsl_mssql_extra_tests->extra,
19 );
20
21 if( !$dsn || !$user ) {
22     $tester->skip_tests('You need to set the DBICTEST_MSSQL_ODBC_DSN, _USER, and _PASS environment variables');
23 }
24 else {
25     $tester->run_tests();
26 }