Method: ActiveRecord::StatementCache#execute
- Defined in:
- activerecord/lib/active_record/statement_cache.rb
#execute(params, connection, allow_retry: false, &block) ⇒ Object
145 146 147 148 149 150 151 152 153 |
# File 'activerecord/lib/active_record/statement_cache.rb', line 145 def execute(params, connection, allow_retry: false, &block) bind_values = bind_map.bind params sql = query_builder.sql_for bind_values, connection klass.find_by_sql(sql, bind_values, preparable: true, allow_retry: allow_retry, &block) rescue ::RangeError [] end |