Skip to content

Commit

Permalink
Revert "CONCAT doesn't work in sqlite - need a db-agnostic function o…
Browse files Browse the repository at this point in the history
…r something"

This reverts commit 443674b.
  • Loading branch information
erithmetic committed Feb 15, 2011
1 parent 443674b commit e9ad55d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -441,9 +441,9 @@ def apply(row)
end

process "Derive model and model year names" do
update_all "make_model_name = make_name + ' ' + name"
update_all "make_year_name = make_name + ' ' + year"
update_all "make_model_year_name = make_name + ' ' + name + ' ' + year"
update_all "make_model_name = CONCAT(make_name, ' ', name)"
update_all "make_year_name = CONCAT(make_name, ' ', year)"
update_all "make_model_year_name = CONCAT(make_name, ' ', name, ' ', year)"
end

# Note: need to divide by 0.425143707 b/c equation is designed for miles / gallon not km / l
Expand Down
Expand Up @@ -77,7 +77,7 @@
end

process "Derive type year name for association with AutomobileTypeYear" do
update_all "type_year_name = type_name + ' ' + year"
update_all "type_year_name = CONCAT(type_name, ' ', year)"
end

# FIXME TODO maybe make this a method on AutomobileTypeFuelYear?
Expand Down

0 comments on commit e9ad55d

Please sign in to comment.