Exception: SQLCapsule::Wrapper::DuplicateColumnNamesError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sql_capsule/wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(fields, query) ⇒ DuplicateColumnNamesError



32
33
34
35
# File 'lib/sql_capsule/wrapper.rb', line 32

def initialize(fields, query)
  message = "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(message)
end