summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2022-04-22 01:59:01 +0200
committergregor herrmann <gregoa@debian.org>2022-04-22 01:59:01 +0200
commit64271eaf89a95fb7fb08f095cccb2b7a39ac00be (patch)
tree39c8c300f5e9e14c923a2515e57c0dda28568918
parentaa0922adbd3fc5f12c804d2d1c962a3087473cff (diff)
Adjust test case expectation that works with either 8.0.22+ or prior mysql versions.
Bug: https://github.com/gooddata/DBD-MariaDB/issues/160 Bug-Debian: https://bugs.debian.org/980640 Gbp-Pq: Name fix-mysql-8.0.22.patch
-rw-r--r--t/rt122541-decimals.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/rt122541-decimals.t b/t/rt122541-decimals.t
index 00292c0..1c0c787 100644
--- a/t/rt122541-decimals.t
+++ b/t/rt122541-decimals.t
@@ -14,6 +14,6 @@ plan tests => 2;
for my $mariadb_server_prepare (0, 1) {
$dbh->{mariadb_server_prepare} = $mariadb_server_prepare;
- is $dbh->selectrow_arrayref('SELECT round(degrees(0.00043) * 69, 2)')->[0], '1.70',
+ like $dbh->selectrow_arrayref('SELECT round(degrees(0.00043) * 69, 2)')->[0], qr/1.70?$/,
'floats with fixed-length of decimals returns correct value for mariadb_server_prepare=' . $mariadb_server_prepare;
}