Exception: ActiveRecord::PreparedStatementInvalid
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ActiveRecordError,
StandardError
|
|
|
Instance Chain:
self,
ActiveRecordError,
StandardError
|
|
| Inherits: |
ActiveRecord::ActiveRecordError
|
| Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Raised when the number of placeholders in an SQL fragment passed to {ActiveRecord::Base.where} does not match the number of values supplied.
For example, when there are two placeholders with only one value supplied:
Location.where("lat = ? AND lng = ?", 53.7362)