* minor - add index out of bound check.

This commit is contained in:
Heng Sin Low 2007-07-18 01:58:15 +00:00
parent ca71e4e8f6
commit 297fbb0179
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ public class Convert_PostgreSQL extends Convert_SQL92 {
fj = Util.findIndexOf(joinFields, ',');
// fieldsjoin.indexOf(',');
joinField = joinFields.substring(0, fj).trim();
joinField = fj > 0 ? joinFields.substring(0, fj).trim() : joinFields.trim();
if (joinField.indexOf('.') < 0 && isIdentifier(joinField)) {
joinField = joinAlias + "." + joinField;
}