From 5041637c04764a7bcd72a92b2c871545e67c3239 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 25 Jan 2007 16:41:58 +0000 Subject: [PATCH] * A better fix for [ 1644505 ] MRole.getAccessSQL not working --- dbPort/src/org/compiere/model/MRole.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbPort/src/org/compiere/model/MRole.java b/dbPort/src/org/compiere/model/MRole.java index 89b9c3d567..4be0624d05 100644 --- a/dbPort/src/org/compiere/model/MRole.java +++ b/dbPort/src/org/compiere/model/MRole.java @@ -810,7 +810,7 @@ public final class MRole extends X_AD_Role m_tableIdName = new HashMap(300); PreparedStatement pstmt = null; String sql = "SELECT AD_Table_ID, AccessLevel, TableName, IsView, " - + "(SELECT ColumnName FROM AD_COLUMN WHERE AD_COLUMN.AD_TABLE_ID = AD_TABLE.AD_TABLE_ID AND ISKEY='Y' AND COLUMNNAME LIKE '%ID') " + + "(SELECT ColumnName FROM AD_COLUMN WHERE AD_COLUMN.AD_TABLE_ID = AD_TABLE.AD_TABLE_ID AND AD_COLUMN.COLUMNNAME = AD_TABLE.TABLENAME || '_ID') " + "FROM AD_Table WHERE IsActive='Y'"; try {