IDEMPIERE-5567 Trl Export for table TestUU_Trl (#2207)
- fix throwing TestUU_Trl org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying <= integer Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Position: 268 - change the process to explicitly break when a DB exception happens
This commit is contained in:
parent
fceb0614a5
commit
b5efecc282
|
@ -257,10 +257,12 @@ public class Translation implements IApplication
|
||||||
sql.append (haveWhere ? " AND " : " WHERE ").append ("o.IsCentrallyMaintained='N'");
|
sql.append (haveWhere ? " AND " : " WHERE ").append ("o.IsCentrallyMaintained='N'");
|
||||||
haveWhere = true;
|
haveWhere = true;
|
||||||
}
|
}
|
||||||
if (AD_Client_ID >= 0)
|
if (AD_Client_ID >= 0) {
|
||||||
sql.append(haveWhere ? " AND " : " WHERE ").append("o.AD_Client_ID=").append(AD_Client_ID);
|
sql.append(haveWhere ? " AND " : " WHERE ").append("o.AD_Client_ID=").append(AD_Client_ID);
|
||||||
|
haveWhere = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (onlyCentralized)
|
if (onlyCentralized && keyColumn.endsWith("_ID"))
|
||||||
sql.append(haveWhere ? " AND " : " WHERE ").append(" o.").append(keyColumn).append("<=").append(MTable.MAX_OFFICIAL_ID).append(" AND o.IsActive = 'Y'");
|
sql.append(haveWhere ? " AND " : " WHERE ").append(" o.").append(keyColumn).append("<=").append(MTable.MAX_OFFICIAL_ID).append(" AND o.IsActive = 'Y'");
|
||||||
|
|
||||||
sql.append(" ORDER BY t.").append(keyColumn);
|
sql.append(" ORDER BY t.").append(keyColumn);
|
||||||
|
@ -323,15 +325,9 @@ public class Translation implements IApplication
|
||||||
// Close writer - teo_sarca [ 1705883 ]
|
// Close writer - teo_sarca [ 1705883 ]
|
||||||
writer.close();
|
writer.close();
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
|
||||||
{
|
|
||||||
log.log(Level.SEVERE, sql.toString(), e);
|
|
||||||
return e.toString();
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "", e);
|
throw new AdempiereException(e.getLocalizedMessage(), e);
|
||||||
return e.toString();
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue