Skip to content

Commit 7e6f3cd

Browse files
committed
51bind_type_guessing.t: Update for 9.0.0 errorcodes
``` mysql-8.4.0> create table t1(id int primary key, dd double); Query OK, 0 rows affected (0.02 sec) mysql-8.4.0> insert into t1 values(1,'5e'); ERROR 1265 (01000): Data truncated for column 'dd' at row 1 ``` ``` mysql-9.0.0> create table t1(id int primary key, dd double); Query OK, 0 rows affected (0.03 sec) mysql-9.0.0> insert into t1 values(1,'5e'); ERROR 1366 (HY000): Incorrect DOUBLE value: '5e' for column 'dd' at row 1 ```
1 parent 028acf2 commit 7e6f3cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/51bind_type_guessing.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ for my $i (0 .. 11) {
135135
eval {
136136
$rows = $sts[1]->execute($val, $i);
137137
};
138-
like ($@, qr{Data truncated for column}, $t);
138+
if ($dbh->{mysql_serverversion} < 90000) {
139+
like ($@, qr{Data truncated for column}, $t);
140+
} else {
141+
like ($@, qr{Incorrect DOUBLE value}, $t);
142+
}
139143
$rows= $sts[1]->execute(0, $i);
140144
}
141145
else {

0 commit comments

Comments
 (0)