Skip to content

Commit

Permalink
Version test must recognize MySQL variants (hepabolu#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Sadowski committed Oct 28, 2019
1 parent 3e8ff61 commit c620f0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/utils.my
Expand Up @@ -36,7 +36,11 @@ SELECT tap.eq(
-- Test mysql_version().
SELECT tap.matches(
tap.mysql_version(),
'^[58][[:digit:]]{5}$',
CASE tap.mysql_variant()
WHEN 'MariaDB' THEN '^10[[:digit:]]{5}$'
/* WHEN 'Percona' THEN ... */
ELSE '^[58][[:digit:]]{5}$' /* MySQL */
END,
'mysql_version() should be correct'
);

Expand Down

0 comments on commit c620f0d

Please sign in to comment.