From: Brandon Black Date: Sun, 22 Jan 2006 00:18:21 +0000 (+0000) Subject: db2-related fixes X-Git-Tag: 0.03000~49 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9b046d97d04d7adf9a43167666d8793a54eb6a62;p=dbsrgits%2FDBIx-Class-Schema-Loader.git db2-related fixes --- diff --git a/t/13db2_common.t b/t/13db2_common.t index 1214300..cee99b2 100644 --- a/t/13db2_common.t +++ b/t/13db2_common.t @@ -8,7 +8,7 @@ my $password = $ENV{DB2_PASS} || ''; my $tester = dbixcsl_common_tests->new( vendor => 'DB2', - auto_inc_pk => 'SERIAL NOT NULL PRIMARY KEY', + auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', dsn => "dbi:DB2:$database", user => $user, password => $password, diff --git a/t/dbixcsl_common_tests.pm b/t/dbixcsl_common_tests.pm index 04d01ff..70507fc 100644 --- a/t/dbixcsl_common_tests.pm +++ b/t/dbixcsl_common_tests.pm @@ -245,9 +245,9 @@ sub create { qq{ CREATE TABLE loader_test5 ( - id1 INTEGER, - id2 INTEGER, -- , id2 INTEGER REFERENCES loader_test1, - dat TEXT, + id1 INTEGER NOT NULL, + id2 INTEGER NOT NULL, -- , id2 INTEGER REFERENCES loader_test1, + dat VARCHAR(8), PRIMARY KEY (id1,id2) ) $self->{innodb}; }, @@ -259,7 +259,7 @@ sub create { id $self->{auto_inc_pk}, id2 INTEGER, loader_test2 INTEGER, - dat TEXT, + dat VARCHAR(8), FOREIGN KEY (loader_test2) REFERENCES loader_test2 (id), FOREIGN KEY (id, id2 ) REFERENCES loader_test5 (id1,id2) ) $self->{innodb}; @@ -272,7 +272,7 @@ sub create { CREATE TABLE loader_test7 ( id INTEGER NOT NULL PRIMARY KEY, id2 VARCHAR(8) NOT NULL UNIQUE, - dat TEXT + dat VARCHAR(8) ) $self->{innodb}; }, @@ -282,7 +282,7 @@ sub create { CREATE TABLE loader_test8 ( id INTEGER NOT NULL PRIMARY KEY, loader_test7 VARCHAR(8) NOT NULL, - dat TEXT, + dat VARCHAR(8), FOREIGN KEY (loader_test7) REFERENCES loader_test7 (id2) ) $self->{innodb}; }, @@ -292,7 +292,7 @@ sub create { qq{ CREATE TABLE loader_test9 ( - loader_test9 TEXT NOT NULL + loader_test9 VARCHAR(8) NOT NULL ) $self->{innodb}; }, );