X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F12pg_common.t;h=5693c891050e16dec4f7284de93ac83467128b7d;hb=6e566cc4a06b1661597200611a03320f969e2566;hp=157decf2e26262b5bdbcab53da6e3439c4d77c17;hpb=df956aad09bce14245ebcbd13063ca2119b6c042;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/12pg_common.t b/t/12pg_common.t index 157decf..5693c89 100644 --- a/t/12pg_common.t +++ b/t/12pg_common.t @@ -11,52 +11,53 @@ my $password = $ENV{DBICTEST_PG_PASS} || ''; my $tester = dbixcsl_common_tests->new( vendor => 'Pg', auto_inc_pk => 'SERIAL NOT NULL PRIMARY KEY', - default_function => 'now()', dsn => $dsn, user => $user, password => $password, data_types => { - 'bigint' => { data_type => 'bigint' }, - 'int8' => { data_type => 'bigint' }, - 'bigserial' => { data_type => 'bigint', is_auto_increment => 1 }, - 'serial8' => { data_type => 'bigint', is_auto_increment => 1 }, - 'bit' => { data_type => 'bit' }, - 'boolean' => { data_type => 'boolean' }, - 'bool' => { data_type => 'boolean' }, - 'box' => { data_type => 'box' }, - 'bytea' => { data_type => 'bytea' }, - 'cidr' => { data_type => 'cidr' }, - 'circle' => { data_type => 'circle' }, - 'date' => { data_type => 'date' }, + bigint => { data_type => 'bigint' }, + int8 => { data_type => 'bigint' }, + bigserial => { data_type => 'bigint', is_auto_increment => 1 }, + serial8 => { data_type => 'bigint', is_auto_increment => 1 }, + bit => { data_type => 'bit' }, + boolean => { data_type => 'boolean' }, + bool => { data_type => 'boolean' }, + box => { data_type => 'box' }, + bytea => { data_type => 'bytea' }, + cidr => { data_type => 'cidr' }, + circle => { data_type => 'circle' }, + date => { data_type => 'date' }, 'double precision' => { data_type => 'double precision' }, - 'float8' => { data_type => 'double precision' }, - 'inet' => { data_type => 'inet' }, - 'integer' => { data_type => 'integer' }, - 'int' => { data_type => 'integer' }, - 'int4' => { data_type => 'integer' }, - 'interval' => { data_type => 'interval' }, + float8 => { data_type => 'double precision' }, + inet => { data_type => 'inet' }, + integer => { data_type => 'integer' }, + int => { data_type => 'integer' }, + int4 => { data_type => 'integer' }, + interval => { data_type => 'interval' }, 'interval(2)' => { size => 2, data_type => 'interval' }, - 'line' => { data_type => 'line' }, - 'lseg' => { data_type => 'lseg' }, - 'macaddr' => { data_type => 'macaddr' }, - 'money' => { data_type => 'money' }, - 'path' => { data_type => 'path' }, - 'point' => { data_type => 'point' }, - 'polygon' => { data_type => 'polygon' }, - 'real' => { data_type => 'real' }, - 'float4' => { data_type => 'real' }, - 'smallint' => { data_type => 'smallint' }, - 'int2' => { data_type => 'smallint' }, - 'serial' => { data_type => 'integer', is_auto_increment => 1 }, - 'serial4' => { data_type => 'integer', is_auto_increment => 1 }, - 'text' => { data_type => 'text' }, - 'time' => { data_type => 'time without time zone' }, + line => { data_type => 'line' }, + lseg => { data_type => 'lseg' }, + macaddr => { data_type => 'macaddr' }, + money => { data_type => 'money' }, + path => { data_type => 'path' }, + point => { data_type => 'point' }, + polygon => { data_type => 'polygon' }, + real => { data_type => 'real' }, + float4 => { data_type => 'real' }, + smallint => { data_type => 'smallint' }, + int2 => { data_type => 'smallint' }, + serial => { data_type => 'integer', is_auto_increment => 1 }, + serial4 => { data_type => 'integer', is_auto_increment => 1 }, + text => { data_type => 'text' }, + time => { data_type => 'time without time zone' }, 'time(2)' => { size => 2, data_type => 'time without time zone' }, 'time without time zone' => { data_type => 'time without time zone' }, 'time(2) without time zone' => { size => 2, data_type => 'time without time zone' }, 'time with time zone' => { data_type => 'time with time zone' }, 'time(2) with time zone' => { size => 2, data_type => 'time with time zone' }, - 'timestamp' => { data_type => 'timestamp without time zone' }, + timestamp => { data_type => 'timestamp without time zone' }, + 'timestamp default current_timestamp' + => { data_type => 'timestamp without time zone', default_value => \'current_timestamp' }, 'timestamp(2)' => { size => 2, data_type => 'timestamp without time zone' }, 'timestamp without time zone' => { data_type => 'timestamp without time zone' }, 'timestamp(2) without time zone' => { size => 2, data_type => 'timestamp without time zone' }, @@ -70,11 +71,12 @@ my $tester = dbixcsl_common_tests->new( 'char(2)' => { size => 2, data_type => 'character' }, 'numeric(6, 3)' => { size => [6,3], data_type => 'numeric' }, 'decimal(6, 3)' => { size => [6,3], data_type => 'numeric' }, - 'numeric' => { data_type => 'numeric' }, - 'decimal' => { data_type => 'numeric' }, + numeric => { data_type => 'numeric' }, + decimal => { data_type => 'numeric' }, 'float(24)' => { data_type => 'real' }, + 'float(25)' => { data_type => 'double precision' }, 'float(53)' => { data_type => 'double precision' }, - 'float' => { data_type => 'double precision' }, + float => { data_type => 'double precision' }, }, extra => { create => [ @@ -133,3 +135,4 @@ if( !$dsn || !$user ) { else { $tester->run_tests(); } +# vim:et sw=4 sts=4 tw=0: