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:
parent
e7a103b84a
commit
df09d1db0b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue