Changeset 196


Ignore:
Timestamp:
04/15/09 03:11:25 (15 years ago)
Author:
nanardon
Message:
  • use new table for ballot value map
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/DB/Poll.pm

    r194 r196  
    711711    my $sth = $self->db->prepare_cached( 
    712712        q{ 
    713         update ballot_item set corrected = ? where 
    714         id in (select id from ballot where poll = ?) 
    715         and (value = ? or corrected = ?) 
    716         } 
    717     ); 
    718  
    719     $sth->execute($to, $self->voteid, $from, $from) or $self->db->rollback; 
     713        insert in ballot_map (poll, "from", to) values (?,?,?) 
     714        } 
     715    ); 
     716 
     717    $sth->execute($self->voteid, $from, $to) or $self->db->rollback; 
    720718    $self->db->commit; 
    721719} 
Note: See TracChangeset for help on using the changeset viewer.