Skip to content

Commit

Permalink
set_default_table_wildcard -> set_default_table_wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Nov 11, 2023
1 parent 3cc997a commit e490e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clear/model/collection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ module Clear::Model
# Redefinition of `join_impl` to avoid ambiguity on the column
# name if no specific column have been selected.
protected def join_impl(name, type, lateral, clear_expr)
self.set_default_table_wildcard(Clear::SQL.escape(T.table))
self.default_wildcard_table = Clear::SQL.escape(T.table)
super(name, type, lateral, clear_expr)
end

Expand Down
2 changes: 1 addition & 1 deletion src/clear/sql/query/select.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Clear::SQL::Query::Select
# In some case you want you query to return `table.*` instead of `*`
# if no select parameters has been set. This occurs in the case of joins
# between models.
def set_default_table_wildcard(table : String? = nil)
def default_wildcard_table=(table : String? = nil)
@default_wildcard_table = table
change!
end
Expand Down

0 comments on commit e490e64

Please sign in to comment.