Changeset 567

Show
Ignore:
Timestamp:
04/24/09 22:03:37 (7 months ago)
Author:
ykerherve
Message:

Looks like SQLite got smarter
Thanks Emmanuel Seyman for reporting this failure
RT#45186

Files:
1 modified

Legend:

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

    r537 r567  
    243243    } 
    244244    # note sqlite is stupid and doesn't return the number of affected rows 
    245     is (Wine->remove({}, { nofetch => 1 }), '0E0', 'removing all bad wine'); 
     245    # 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; 
     248    is (Wine->remove({}, { nofetch => 1 }), $count, 'removing all bad wine'); 
    246249} 
    247250