aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 14:36:39 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-01-20 14:36:39 +0000
commitdb6688585f47d96f30ed1c253385e1053c789d2b (patch)
treee95bcedcae4787fa684baec444fcadfa0451c1f5
parent4ddbe0ac44efaa166dfb5cb95cf217254ca5855e (diff)
downloadrails-db6688585f47d96f30ed1c253385e1053c789d2b.tar.gz
rails-db6688585f47d96f30ed1c253385e1053c789d2b.tar.bz2
rails-db6688585f47d96f30ed1c253385e1053c789d2b.zip
Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG2
-rw-r--r--activerecord/lib/active_record/vendor/mysql411.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 965054b4b6..e006a34edc 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed that column aliases didn't work as expected with the new MySql411 driver #507 [Demetrius]
+
* Fixed that find_all would produce invalid sql when called sequentialy #490 [Scott Baron]
diff --git a/activerecord/lib/active_record/vendor/mysql411.rb b/activerecord/lib/active_record/vendor/mysql411.rb
index 3daa846f16..0a94258122 100644
--- a/activerecord/lib/active_record/vendor/mysql411.rb
+++ b/activerecord/lib/active_record/vendor/mysql411.rb
@@ -255,7 +255,7 @@ class Mysql
def_value = f[7]
max_length = 0
- ret << Field::new(table_name, table_name, column_name, length, type, flags, decimals, def_value, max_length)
+ ret << Field::new(table_name, table_name, column_name_alias, length, type, flags, decimals, def_value, max_length)
end
ret
end