Changeset 571

Show
Ignore:
Timestamp:
04/27/09 19:37:19 (7 months ago)
Author:
ykerherve
Message:

It looks like SQLite version is more the culprit than
DBD::SQLite...

NOTE: The test behaviour changes starting at
SQLite 3.5.0 without proof that this is actual version
that introduced the change

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/02-basic.t

    r567 r571  
    244244    # note sqlite is stupid and doesn't return the number of affected rows 
    245245    # quick hack because I can't rely on version.pm to be installed everywhere 
    246     my ($sqlite_version) = $DBD::SQLite::VERSION =~ /(\d+(?:\.\d+))/; 
    247     my $count = $sqlite_version > 1.22 ? scalar @bad_wines : 0E0; 
     246    my ($sqlite_version) = Wine->driver->rw_handle->{sqlite_version} =~ /(\d+(?:\.\d+))/; 
     247    my $count = $sqlite_version > 3.5 ? scalar @bad_wines : "0E0"; 
    248248    is (Wine->remove({}, { nofetch => 1 }), $count, 'removing all bad wine'); 
    249249}