From 49934ff3bf729e5465ae8c3129e820419a0edd2a Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 12 Feb 2018 09:43:28 +0800 Subject: [PATCH] Call DefaultTableNameHandler for JoinTableHandler's table --- join_table_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/join_table_handler.go b/join_table_handler.go index f07541ba..a036d46d 100644 --- a/join_table_handler.go +++ b/join_table_handler.go @@ -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{}) {