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

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