* Only prepend table name to query if access name doesn't contain "(" or "."
This commit is contained in:
parent
8b446fea01
commit
5efab894ef
1 changed files with 4 additions and 2 deletions
|
@ -772,8 +772,10 @@ public final class Relation {
|
|||
|
||||
String accessColumn = (accessName == null) ? otherType.getIDField() : accessName;
|
||||
|
||||
q.append(otherType.getTableName());
|
||||
q.append(".");
|
||||
if (accessColumn.indexOf('(') == -1 && accessColumn.indexOf('.') == -1) {
|
||||
q.append(otherType.getTableName());
|
||||
q.append(".");
|
||||
}
|
||||
q.append(accessColumn);
|
||||
q.append(" = ");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue