IDEMPIERE-4047 Minor trx fix for GridTabCSVImporter

This commit is contained in:
Heng Sin Low 2019-09-11 15:07:55 +08:00
parent cdbb206003
commit ed90b53e4d
2 changed files with 4 additions and 3 deletions

View File

@ -133,7 +133,7 @@ public class GridTabWrapper implements InvocationHandler
private final String getTrxName() private final String getTrxName()
{ {
return null; return getGridTab().getTableModel().get_TrxName();
} }
/** /**

View File

@ -775,8 +775,9 @@ public class GridField
PreparedStatement stmt = null; PreparedStatement stmt = null;
ResultSet rs = null; ResultSet rs = null;
try try
{ {
stmt = DB.prepareStatement(sql, null); String trxName = m_gridTab != null ? m_gridTab.getTableModel().get_TrxName() : null;
stmt = DB.prepareStatement(sql, trxName);
rs = stmt.executeQuery(); rs = stmt.executeQuery();
if (rs.next()) if (rs.next())
defStr = rs.getString(1); defStr = rs.getString(1);