updated lowercasing columns test for MSSQL
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 17sybase_asa_common.t
CommitLineData
8793567f 1use strict;
5347f501 2use warnings;
8793567f 3use lib qw(t/lib);
4use dbixcsl_common_tests;
5
6# The default max_cursor_count and max_statement_count settings of 50 are too
7# low to run this test.
8
5347f501 9my $dbd_sqlanywhere_dsn = $ENV{DBICTEST_SYBASE_ASA_DSN} || '';
10my $dbd_sqlanywhere_user = $ENV{DBICTEST_SYBASE_ASA_USER} || '';
11my $dbd_sqlanywhere_password = $ENV{DBICTEST_SYBASE_ASA_PASS} || '';
12
13my $odbc_dsn = $ENV{DBICTEST_SYBASE_ASA_ODBC_DSN} || '';
14my $odbc_user = $ENV{DBICTEST_SYBASE_ASA_ODBC_USER} || '';
15my $odbc_password = $ENV{DBICTEST_SYBASE_ASA_ODBC_PASS} || '';
8793567f 16
17my $tester = dbixcsl_common_tests->new(
18 vendor => 'SQLAnywhere',
19 auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY',
20 default_function => 'current timestamp',
5347f501 21 connect_info => [ ($dbd_sqlanywhere_dsn ? {
22 dsn => $dbd_sqlanywhere_dsn,
23 user => $dbd_sqlanywhere_user,
24 password => $dbd_sqlanywhere_password,
25 } : ()),
26 ($odbc_dsn ? {
27 dsn => $odbc_dsn,
28 user => $odbc_user,
29 password => $odbc_password,
30 } : ()),
31 ],
8793567f 32);
33
5347f501 34if (not ($dbd_sqlanywhere_dsn || $odbc_dsn)) {
35 $tester->skip_tests('You need to set the DBICTEST_SYBASE_ASA_DSN, _USER and _PASS and/or the DBICTEST_SYBASE_ASA_ODBC_DSN, _USER and _PASS environment variables');
8793567f 36}
37else {
38 $tester->run_tests();
39}