From e65fadc59764917eca2a9148737f821ba87d8cd0 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 16 Jan 2009 06:52:48 +0000 Subject: [PATCH] Fix [2512581] Packin multiple primary keys for table not allowed https://sourceforge.net/tracker2/?func=detail&aid=2512581&group_id=176962&atid=879332 --- base/src/org/adempiere/pipo/handler/TableElementHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/adempiere/pipo/handler/TableElementHandler.java b/base/src/org/adempiere/pipo/handler/TableElementHandler.java index 8aaed92bff..7d29094bce 100644 --- a/base/src/org/adempiere/pipo/handler/TableElementHandler.java +++ b/base/src/org/adempiere/pipo/handler/TableElementHandler.java @@ -150,7 +150,7 @@ public class TableElementHandler extends AbstractElementHandler { document.startElement("","","table",atts); String sql1 = "SELECT * FROM AD_Column WHERE AD_Table_ID = " + AD_Table_ID - + " ORDER BY SEQNO asc"; + + " ORDER BY IsKey DESC, AD_Column_ID"; // Export key column as the first one PreparedStatement pstmt1 = null; pstmt1 = DB.prepareStatement (sql1, getTrxName(ctx));