fixed bug: [ 1669712 ] Problem with MLookupFactory use PostgreSQL

https://sourceforge.net/tracker/index.php?func=detail&aid=1669712&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2007-02-27 06:26:26 +00:00
parent 501eca17d5
commit c351c199cc
1 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ public class MLookupFactory
// add WHERE clause
MQuery zoomQuery = null;
if (WhereClause != null)
if (WhereClause != null && WhereClause.length() > 0)
{
String where = WhereClause;
if (where.indexOf('@') != -1)
@ -434,7 +434,7 @@ public class MLookupFactory
}
// Order By qualified term or by Name
if (OrderByClause != null)
if (OrderByClause != null && OrderByClause.length() > 0 )
{
realSQL.append(" ORDER BY ").append(OrderByClause);
if (OrderByClause.indexOf('.') == -1)