Quoted table name in join expression

This commit is contained in:
Lukas Jorg 2022-03-29 08:10:02 +02:00
parent 28971c7899
commit c9e5b3665c

View File

@ -24,7 +24,7 @@ func join(joinType string, db *DB, model interface{}, alias ...string) *jexpr {
return &jexpr{expr: " " + joinType + " JOIN (" + val.expr + ") " + al, args: val.args}
}
}
return &jexpr{expr: " " + joinType + " JOIN " + db.T(model) + " " + al}
return &jexpr{expr: " " + joinType + " JOIN " + db.QT(model) + " " + al}
}
func (db *DB) InnerJoin(model interface{}, alias ...string) *jexpr {