Fixed export of uuid reference.

This commit is contained in:
Heng Sin Low 2010-12-25 09:32:14 +08:00
parent cc04468c7d
commit 43c15413c2
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class ReferenceUtils {
else
{
MTable table = MTable.get(Env.getCtx(), tableName);
if (table.get_ColumnIndex(tableName + "_UU") >= 0 )
if (table.getColumn(tableName + "_UU") != null)
{
sql = "SELECT " + tableName + "_UU" + " FROM "
+ tableName + " WHERE " + keyColumn + " = ?";