Exception: SQLCapsule::Wrapper::DuplicateColumnNamesError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SQLCapsule::Wrapper::DuplicateColumnNamesError
- Defined in:
- lib/sql_capsule/wrapper.rb
Instance Method Summary collapse
-
#initialize(fields, query) ⇒ DuplicateColumnNamesError
constructor
A new instance of DuplicateColumnNamesError.
Constructor Details
#initialize(fields, query) ⇒ DuplicateColumnNamesError
32 33 34 35 |
# File 'lib/sql_capsule/wrapper.rb', line 32 def initialize(fields, query) = "Error duplicate column names in resulting table: #{fields}\nThis usually happens when using a `JOIN` with a `SELECT *`\nYou may need use `AS` to name your columns.\nQUERY: #{query}" super() end |