Changeset 23747
- Timestamp:
- 11/15/08 10:59:41 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Data-Model/trunk/lib/Data/Model/Driver/DBI.pm
r23563 r23747 89 89 unshift @{ $columns->{from} }, $schema->{model}; 90 90 91 my $index_query = delete $columns->{index}; 91 92 my $stmt = Data::Model::SQL->new(%{ $columns }); 92 93 $self->add_key_to_where($stmt, $schema->{key}, $key) if $key; 93 $self->add_index_to_where($schema, $stmt, $ columns->{index}) if exists $columns->{index};94 $self->add_index_to_where($schema, $stmt, $index_query) if $index_query; 94 95 my $sql = $stmt->as_sql; 95 96 … … 222 223 223 224 $columns->{from} = [ $schema->{model} ]; 225 my $index_query = delete $columns->{index}; 224 226 my $stmt = Data::Model::SQL->new(%{ $columns }); 225 227 $self->add_key_to_where($stmt, $schema->{key}, $key) if $key; 228 $self->add_index_to_where($schema, $stmt, $index_query) if $index_query; 226 229 227 230 my $sql = "DELETE " . $stmt->as_sql;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)