diff options
author | Xavier Noria <fxn@hashref.com> | 2010-07-26 18:57:02 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-26 18:57:02 +0200 |
commit | b31c0ae306cf4357304fd7fe8130480f336590f9 (patch) | |
tree | d28f1c4611da7a9edd5d2ec56ddd03752efbc33e /activerecord/lib/active_record/base.rb | |
parent | 79f9fcd70d9c15f63f62fb04a46996ae29769937 (diff) | |
parent | c819c131f2d08a8c9089a6ef0dcadcf912e2538c (diff) | |
download | rails-b31c0ae306cf4357304fd7fe8130480f336590f9.tar.gz rails-b31c0ae306cf4357304fd7fe8130480f336590f9.tar.bz2 rails-b31c0ae306cf4357304fd7fe8130480f336590f9.zip |
Merge remote branch 'rails/master'
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index c589b32dd8..5898ec3732 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1255,6 +1255,8 @@ MSG replace_named_bind_variables(statement, values.first) elsif statement.include?('?') replace_bind_variables(statement, values) + elsif statement.blank? + statement else statement % values.collect { |value| connection.quote_string(value.to_s) } end |