* Only prepend table name to query if access name doesn't contain "(" or "."

This commit is contained in:
hns 2005-08-29 14:11:38 +00:00
parent 8b446fea01
commit 5efab894ef

View file

@ -772,8 +772,10 @@ public final class Relation {
String accessColumn = (accessName == null) ? otherType.getIDField() : accessName; String accessColumn = (accessName == null) ? otherType.getIDField() : accessName;
q.append(otherType.getTableName()); if (accessColumn.indexOf('(') == -1 && accessColumn.indexOf('.') == -1) {
q.append("."); q.append(otherType.getTableName());
q.append(".");
}
q.append(accessColumn); q.append(accessColumn);
q.append(" = "); q.append(" = ");