Permalink
Browse files

Fixed that column aliases didn't work as expected with the new MySql4…

…11 driver #507 [Demetrius]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4ddbe0a commit db6688585f47d96f30ed1c253385e1053c789d2b @dhh dhh committed Jan 20, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −1 activerecord/lib/active_record/vendor/mysql411.rb
@@ -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]
@@ -255,7 +255,7 @@ def unpack_fields_41( data, long_flag_protocol )
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

0 comments on commit db66885

Please sign in to comment.