X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F17sybase_asa_common.t;h=ef81520bf8c7f7c23f31c2f3335c317a4b266c9b;hb=289496709ffe36f6e233811ec3f4b28b8dc1bc5f;hp=d9bdbd0b499bbe9cb79f46a53b94bd825fc43c2c;hpb=9dc968dfc403141ed2777adf02de11ed442414cc;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/17sybase_asa_common.t b/t/17sybase_asa_common.t index d9bdbd0..ef81520 100644 --- a/t/17sybase_asa_common.t +++ b/t/17sybase_asa_common.t @@ -5,6 +5,8 @@ use dbixcsl_common_tests; # The default max_cursor_count and max_statement_count settings of 50 are too # low to run this test. +# +# Setting them to zero is preferred. my $dbd_sqlanywhere_dsn = $ENV{DBICTEST_SYBASE_ASA_DSN} || ''; my $dbd_sqlanywhere_user = $ENV{DBICTEST_SYBASE_ASA_USER} || ''; @@ -17,7 +19,6 @@ my $odbc_password = $ENV{DBICTEST_SYBASE_ASA_ODBC_PASS} || ''; my $tester = dbixcsl_common_tests->new( vendor => 'SQLAnywhere', auto_inc_pk => 'INTEGER IDENTITY NOT NULL PRIMARY KEY', - default_function => 'current timestamp', connect_info => [ ($dbd_sqlanywhere_dsn ? { dsn => $dbd_sqlanywhere_dsn, user => $dbd_sqlanywhere_user, @@ -29,6 +30,7 @@ my $tester = dbixcsl_common_tests->new( password => $odbc_password, } : ()), ], + loader_options => { preserve_case => 1 }, data_types => { # http://infocenter.sybase.com/help/topic/com.sybase.help.sqlanywhere.11.0.1/dbreference_en11/rf-datatypes.html # @@ -39,14 +41,14 @@ my $tester = dbixcsl_common_tests->new( 'int' => { data_type => 'integer' }, 'integer' => { data_type => 'integer' }, 'bigint' => { data_type => 'bigint' }, - 'float' => { data_type => 'float' }, - 'real' => { data_type => 'float' }, + 'float' => { data_type => 'real' }, + 'real' => { data_type => 'real' }, 'double' => { data_type => 'double precision' }, 'double precision' => { data_type => 'double precision' }, - 'float(2)' => { data_type => 'float' }, - 'float(24)' => { data_type => 'float' }, + 'float(2)' => { data_type => 'real' }, + 'float(24)' => { data_type => 'real' }, 'float(25)' => { data_type => 'double precision' }, 'float(53)' => { data_type => 'double precision' }, @@ -90,8 +92,10 @@ my $tester = dbixcsl_common_tests->new( 'smalldatetime' => { data_type => 'smalldatetime' }, 'timestamp' => { data_type => 'timestamp' }, - 'timestamp DEFAULT current timestamp' - => { data_type => 'timestamp', default_value => \"current timestamp" }, + # rewrite 'current timestamp' as 'current_timestamp' + 'timestamp default current timestamp' + => { data_type => 'timestamp', default_value => \'current_timestamp', + original => { default_value => \'current timestamp' } }, 'time' => { data_type => 'time' }, # String Types @@ -135,3 +139,4 @@ if (not ($dbd_sqlanywhere_dsn || $odbc_dsn)) { else { $tester->run_tests(); } +# vim:et sts=4 sw=4 tw=0: