Permalink
Browse files

Fixed that Migration#execute would have the table name prefix appende…

…d to its query (closes #4110) [mark.imbriaco@pobox.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent fe94ba1 commit 9bd7db4a980652f327e4410b0be0345bee761bf8 @dhh dhh committed Mar 18, 2006
Showing with 3 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −1 activerecord/lib/active_record/migration.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed that Migration#execute would have the table name prefix appended to its query #4110 [mark.imbriaco@pobox.com]
+
* Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.) [Jamis Buck]
* Use association's :conditions when eager loading. [jeremyevans0@gmail.com] #4144
@@ -266,7 +266,7 @@ def suppress_messages
def method_missing(method, *arguments, &block)
say_with_time "#{method}(#{arguments.map { |a| a.inspect }.join(", ")})" do
- arguments[0] = Migrator.proper_table_name(arguments.first) unless arguments.empty?
+ arguments[0] = Migrator.proper_table_name(arguments.first) unless arguments.empty? || method == :execute
ActiveRecord::Base.connection.send(method, *arguments, &block)
end
end

0 comments on commit 9bd7db4

Please sign in to comment.