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:
Carlos Ruiz 2011-08-04 23:00:57 -05:00
parent e1a2db87e1
commit da619d941f
1 changed files with 3 additions and 3 deletions

View File

@ -3191,7 +3191,7 @@ public abstract class PO
boolean uuidFunction = DB.isGenerateUUIDSupported(); boolean uuidFunction = DB.isGenerateUUIDSupported();
//uuid column //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"); tableName+"_Trl", tableName+"_Trl_UU");
StringBuffer sql = new StringBuffer ("INSERT INTO ") StringBuffer sql = new StringBuffer ("INSERT INTO ")
@ -3371,7 +3371,7 @@ public abstract class PO
boolean uuidFunction = DB.isGenerateUUIDSupported(); boolean uuidFunction = DB.isGenerateUUIDSupported();
//uuid column //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"); acctTable, acctTable+"_UU");
if (uuidColumnId > 0 && uuidFunction) if (uuidColumnId > 0 && uuidFunction)
sb.append(",").append(acctTable).append("_UU"); sb.append(",").append(acctTable).append("_UU");
@ -3444,7 +3444,7 @@ public abstract class PO
boolean uuidFunction = DB.isGenerateUUIDSupported(); boolean uuidFunction = DB.isGenerateUUIDSupported();
//uuid column //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"); tableName, tableName+"_UU");
StringBuffer sb = new StringBuffer ("INSERT INTO ") StringBuffer sb = new StringBuffer ("INSERT INTO ")