* minor - add index out of bound check.
This commit is contained in:
parent
ca71e4e8f6
commit
297fbb0179
|
@ -621,7 +621,7 @@ public class Convert_PostgreSQL extends Convert_SQL92 {
|
||||||
fj = Util.findIndexOf(joinFields, ',');
|
fj = Util.findIndexOf(joinFields, ',');
|
||||||
// fieldsjoin.indexOf(',');
|
// fieldsjoin.indexOf(',');
|
||||||
|
|
||||||
joinField = joinFields.substring(0, fj).trim();
|
joinField = fj > 0 ? joinFields.substring(0, fj).trim() : joinFields.trim();
|
||||||
if (joinField.indexOf('.') < 0 && isIdentifier(joinField)) {
|
if (joinField.indexOf('.') < 0 && isIdentifier(joinField)) {
|
||||||
joinField = joinAlias + "." + joinField;
|
joinField = joinAlias + "." + joinField;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue