mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Only wrap functions in joins when they are functions
This commit is contained in:
parent
ded1cbe800
commit
29d87fa1b6
@ -826,7 +826,8 @@ public class SQLSerializer extends SerializerBase<SQLSerializer> {
|
||||
|
||||
@Override
|
||||
public Void visit(TemplateExpression<?> expr, Void context) {
|
||||
if (inJoin && templates.isFunctionJoinsWrapped()) {
|
||||
if (inJoin && expr instanceof RelationalFunctionCall
|
||||
&& templates.isFunctionJoinsWrapped()) {
|
||||
append("table(");
|
||||
super.visit(expr, context);
|
||||
append(")");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user