1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

Apply a patch for t/rt_73787_exponential_buffer_overflow.t (Tux++) #64

This commit is contained in:
Kenichi Ishigaki 2021-03-31 06:23:36 +09:00
parent 7bfec13b7e
commit 7fcca420ba

View file

@ -8,7 +8,7 @@ use if -d ".git", "Test::FailWarnings";
my $dbh = connect_ok(sqlite_see_if_its_a_number => 1);
$dbh->do('create table foo (id integer primary key, exp)');
my $ct = 0;
for my $value (qw/2e100 10.04e100/) {
for my $value (qw/2e1000 10.04e1000/) {
eval {
$dbh->do('insert into foo values (?, ?)', undef, $ct++, $value);
my $got = $dbh->selectrow_arrayref('select * from foo where exp = ?', undef, $value);