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,
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};
},
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};
CREATE TABLE loader_test7 (
id INTEGER NOT NULL PRIMARY KEY,
id2 VARCHAR(8) NOT NULL UNIQUE,
- dat TEXT
+ dat VARCHAR(8)
) $self->{innodb};
},
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};
},
qq{
CREATE TABLE loader_test9 (
- loader_test9 TEXT NOT NULL
+ loader_test9 VARCHAR(8) NOT NULL
) $self->{innodb};
},
);