| ... | ... |
@@ -875,10 +875,8 @@ sub select {
|
| 875 | 875 |
@{$self->_search_tables(join(' ', keys %$where_param) || '')};
|
| 876 | 876 |
|
| 877 | 877 |
# Where |
| 878 |
- my $where = defined $opt{id}
|
|
| 879 |
- ? $self->_id_to_param(delete $opt{id}, $opt{primary_key}, $tables->[-1])
|
|
| 880 |
- : $opt{where};
|
|
| 881 |
- my $w = $self->_where_clause_and_param($where, $where_param); |
|
| 878 |
+ my $w = $self->_where_clause_and_param($opt{where}, $where_param,
|
|
| 879 |
+ delete $opt{id}, $opt{primary_key}, $tables->[-1]);
|
|
| 882 | 880 |
|
| 883 | 881 |
# Add table names in where clause |
| 884 | 882 |
unshift @$tables, @{$self->_search_tables($w->{clause})};
|