BF [ 2611471 ] Synchronize column fails for new table with virtual column

https://sourceforge.net/tracker/index.php?func=detail&aid=2611471&group_id=176962&atid=879332
This commit is contained in:
phib 2009-02-18 05:05:54 +00:00
parent e7a103b84a
commit df09d1db0b
1 changed files with 9 additions and 3 deletions

View File

@ -706,11 +706,17 @@ public class MTable extends X_AD_Table
StringBuffer constraints = new StringBuffer(); StringBuffer constraints = new StringBuffer();
getColumns(true); getColumns(true);
for (int i = 0; i < m_columns.length; i++) for (int i = 0; i < m_columns.length; i++)
{
MColumn column = m_columns[i];
String colSQL = column.getSQLDDL();
if ( colSQL != null )
{ {
if (i > 0) if (i > 0)
sb.append(", "); sb.append(", ");
MColumn column = m_columns[i];
sb.append(column.getSQLDDL()); sb.append(column.getSQLDDL());
}
else // virtual column
continue;
// //
if (column.isKey()) if (column.isKey())
hasPK = true; hasPK = true;