Skip to content

Commit aab6649

Browse files
committed
Fix warning message in test t/55utf8.t for MariaDB 10.2.20+, 10.3.12+ and 10.4.1+
Fixes: #121
1 parent 4980a0f commit aab6649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/55utf8.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ok $sth->finish;
8080

8181
cmp_ok($dbh->{mariadb_warning_count}, '==', 1, 'got warning for INSERT') or do { diag("SHOW WARNINGS:"); diag($_->[2]) foreach $dbh->selectall_array("SHOW WARNINGS", { mariadb_server_prepare => 0 }); };
8282
my (undef, undef, $warning) = $dbh->selectrow_array("SHOW WARNINGS", { mariadb_server_prepare => 0 });
83-
like($warning, qr/^(?:Incorrect string value: '\\xC4\\x80dam'|Data truncated) for column 'ascii' at row 1$/, 'warning is correct');
83+
like($warning, qr/^(?:Incorrect string value: '\\xC4\\x80dam'|Data truncated) for column (?:'ascii'|`.*`\.`.*`\.`ascii`) at row 1$/, 'warning is correct');
8484

8585
# AsBinary() is deprecated as of MySQL 5.7.6, use ST_AsBinary() instead
8686
my $asbinary = $dbh->{mariadb_serverversion} >= 50706 ? 'ST_AsBinary' : 'AsBinary';

0 commit comments

Comments
 (0)