Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 504158
Collapse All | Expand All

(-)DBD-SQLite-1.35/t/07_error.t (-1 / +1 lines)
Lines 28-31 Link Here
28
};
28
};
29
ok($@, 'Statement 2 generated an error');
29
ok($@, 'Statement 2 generated an error');
30
is( $DBI::err, 19, '$DBI::err ok' );
30
is( $DBI::err, 19, '$DBI::err ok' );
31
like( $DBI::errstr, qr/column a is not unique/, '$DBI::errstr ok' );
31
like( $DBI::errstr, qr/column a is not unique|UNIQUE constraint failed/, '$DBI::errstr ok' );
(-)DBD-SQLite-1.35/t/39_foreign_keys.t (-2 / +2 lines)
Lines 49-55 Link Here
49
# column (3) does not correspond to row in the artist table.
49
# column (3) does not correspond to row in the artist table.
50
50
51
ok !insert_track(14, "Mr. Bojangles", 3);
51
ok !insert_track(14, "Mr. Bojangles", 3);
52
ok $@ =~ qr/foreign key constraint failed/;
52
ok $@ =~ qr/foreign key constraint failed/i;
53
53
54
# This succeeds because a NULL is inserted into trackartist. A
54
# This succeeds because a NULL is inserted into trackartist. A
55
# corresponding row in the artist table is not required in this case.
55
# corresponding row in the artist table is not required in this case.
Lines 62-68 Link Here
62
# artist table.
62
# artist table.
63
63
64
ok !update_track(3, "Mr. Bojangles");
64
ok !update_track(3, "Mr. Bojangles");
65
ok $@ =~ /foreign key constraint failed/;
65
ok $@ =~ /foreign key constraint failed/i;
66
66
67
# Insert the required row into the artist table. It is then possible
67
# Insert the required row into the artist table. It is then possible
68
# to update the inserted row to set trackartist to 3 (since a
68
# to update the inserted row to set trackartist to 3 (since a
(-)DBD-SQLite-1.35/t/rt_36838_unique_and_bus_error.t (-1 / +1 lines)
Lines 17-20 Link Here
17
ok $dbh->do("INSERT INTO nums (num) VALUES (?)", undef, 1);
17
ok $dbh->do("INSERT INTO nums (num) VALUES (?)", undef, 1);
18
18
19
eval { $dbh->do("INSERT INTO nums (num) VALUES (?)", undef, 1); };
19
eval { $dbh->do("INSERT INTO nums (num) VALUES (?)", undef, 1); };
20
ok $@ =~ /column num is not unique/, $@;  # should not be a bus error
20
ok $@ =~ /column num is not unique|UNIQUE constraint failed/, $@;  # should not be a bus error

Return to bug 504158