Fix [2512581] Packin multiple primary keys for table not allowed

https://sourceforge.net/tracker2/?func=detail&aid=2512581&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2009-01-16 06:52:48 +00:00
parent e5e7ae3481
commit e65fadc597
1 changed files with 1 additions and 1 deletions

View File

@ -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));