Changeset 99

Show
Ignore:
Timestamp:
05/04/06 00:08:01 (4 years ago)
Author:
sky
Message:

r102@crucially-3 (orig r1086): mpaschal | 2006-01-17 16:04:46 -0800
Make _mk_term an overridable method

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Data/ObjectDriver/SQL.pm

    r86 r99  
    7272    my($col, $val) = @_; 
    7373    Carp::croak("Invalid/unsafe column name $col") unless $col =~ /^[\w\.]+$/; 
    74     my($term, $bind) = _mk_term($col, $val); 
     74    my($term, $bind) = $stmt->_mk_term($col, $val); 
    7575    push @{ $stmt->{where} }, "($term)"; 
    7676    push @{ $stmt->{bind} }, @$bind; 
     
    7878 
    7979sub _mk_term { 
     80    my $stmt = shift; 
    8081    my($col, $val) = @_; 
    8182    my $term = ''; 
     
    8990        my @terms; 
    9091        for my $val (@$val) { 
    91             my($term, $bind) = _mk_term($col, $val); 
     92            my($term, $bind) = $stmt->_mk_term($col, $val); 
    9293            push @terms, $term; 
    9394            push @bind, @$bind;