Skip to content

Commit

Permalink
Call DefaultTableNameHandler for JoinTableHandler's table
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Feb 12, 2018
1 parent c54d234 commit 49934ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion join_table_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (s *JoinTableHandler) Setup(relationship *Relationship, tableName string, s

// Table return join table's table name
func (s JoinTableHandler) Table(db *DB) string {
return s.TableName
return DefaultTableNameHandler(db, s.TableName)
}

func (s JoinTableHandler) updateConditionMap(conditionMap map[string]interface{}, db *DB, joinTableSources []JoinTableSource, sources ...interface{}) {
Expand Down

0 comments on commit 49934ff

Please sign in to comment.