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:
parent
e5e7ae3481
commit
e65fadc597
|
@ -150,7 +150,7 @@ public class TableElementHandler extends AbstractElementHandler {
|
||||||
document.startElement("","","table",atts);
|
document.startElement("","","table",atts);
|
||||||
|
|
||||||
String sql1 = "SELECT * FROM AD_Column WHERE AD_Table_ID = " + AD_Table_ID
|
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;
|
PreparedStatement pstmt1 = null;
|
||||||
pstmt1 = DB.prepareStatement (sql1, getTrxName(ctx));
|
pstmt1 = DB.prepareStatement (sql1, getTrxName(ctx));
|
||||||
|
|
Loading…
Reference in New Issue