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:
parent
7bfec13b7e
commit
7fcca420ba
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ use if -d ".git", "Test::FailWarnings";
|
||||||
my $dbh = connect_ok(sqlite_see_if_its_a_number => 1);
|
my $dbh = connect_ok(sqlite_see_if_its_a_number => 1);
|
||||||
$dbh->do('create table foo (id integer primary key, exp)');
|
$dbh->do('create table foo (id integer primary key, exp)');
|
||||||
my $ct = 0;
|
my $ct = 0;
|
||||||
for my $value (qw/2e100 10.04e100/) {
|
for my $value (qw/2e1000 10.04e1000/) {
|
||||||
eval {
|
eval {
|
||||||
$dbh->do('insert into foo values (?, ?)', undef, $ct++, $value);
|
$dbh->do('insert into foo values (?, ?)', undef, $ct++, $value);
|
||||||
my $got = $dbh->selectrow_arrayref('select * from foo where exp = ?', undef, $value);
|
my $got = $dbh->selectrow_arrayref('select * from foo where exp = ?', undef, $value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue