fixes IDEMPIERE-52 ORA-00933: SQL command not properly ended when starting a report (Oracle DB) - thanks to Dirk Niemeyer (a42niem)
http://jira.idempiere.com/browse/IDEMPIERE-52
This commit is contained in:
parent
e1a2db87e1
commit
da619d941f
|
@ -3191,7 +3191,7 @@ public abstract class PO
|
|||
boolean uuidFunction = DB.isGenerateUUIDSupported();
|
||||
|
||||
//uuid column
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column as col INNER JOIN AD_Table as tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column col INNER JOIN AD_Table tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
tableName+"_Trl", tableName+"_Trl_UU");
|
||||
|
||||
StringBuffer sql = new StringBuffer ("INSERT INTO ")
|
||||
|
@ -3371,7 +3371,7 @@ public abstract class PO
|
|||
boolean uuidFunction = DB.isGenerateUUIDSupported();
|
||||
|
||||
//uuid column
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column as col INNER JOIN AD_Table as tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column col INNER JOIN AD_Table tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
acctTable, acctTable+"_UU");
|
||||
if (uuidColumnId > 0 && uuidFunction)
|
||||
sb.append(",").append(acctTable).append("_UU");
|
||||
|
@ -3444,7 +3444,7 @@ public abstract class PO
|
|||
boolean uuidFunction = DB.isGenerateUUIDSupported();
|
||||
|
||||
//uuid column
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column as col INNER JOIN AD_Table as tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
int uuidColumnId = DB.getSQLValue(get_TrxName(), "SELECT col.AD_Column_ID FROM AD_Column col INNER JOIN AD_Table tbl ON col.AD_Table_ID = tbl.AD_Table_ID WHERE tbl.TableName=? AND col.ColumnName=?",
|
||||
tableName, tableName+"_UU");
|
||||
|
||||
StringBuffer sb = new StringBuffer ("INSERT INTO ")
|
||||
|
|
Loading…
Reference in New Issue