Changeset 2625
- Timestamp:
- 06/20/08 09:02:09 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-40/lib/MT/ObjectDriver/Driver/DBI.pm
r2548 r2625 257 257 } 258 258 $stmt->select([]); 259 my $sql = "SELECT $select\n" . $stmt->as_sql; 259 $stmt->select_map({}); 260 $stmt->select_map_reverse({}); 261 $stmt->add_select($select => $select); 262 my $sql = $stmt->as_sql; 260 263 $driver->select_one($sql, $stmt->bind); 261 264 } branches/release-40/lib/MT/ObjectDriver/SQL/SQLite.pm
r1174 r2625 30 30 my $cd = delete $stmt->{count_distinct}; 31 31 my ($col) = each %$cd; 32 my @select = @{$stmt->select}; 32 33 $stmt->select([$col]); 33 34 my $class = ref $stmt; 34 35 my $main_stmt = $class->new; 36 $main_stmt->select(\@select); 35 37 $main_stmt->from_stmt($stmt); 36 38 $main_stmt->as_sql(@_);
