Method: Sequel::Dataset#join_clause_sql_append
- Defined in:
- lib/sequel/dataset/sql.rb
permalink #join_clause_sql_append(sql, jc) ⇒ Object
Append literalization of JOIN clause without ON or USING to SQL string.
573 574 575 576 577 578 579 580 |
# File 'lib/sequel/dataset/sql.rb', line 573 def join_clause_sql_append(sql, jc) table = jc.table table_alias = jc.table_alias table_alias = nil if table == table_alias && !jc.column_aliases sql << ' ' << join_type_sql(jc.join_type) << ' ' identifier_append(sql, table) as_sql_append(sql, table_alias, jc.column_aliases) if table_alias end |