IDEMPIERE-4219 Alert query in Replica database (FHCA-1200)

This commit is contained in:
Carlos Ruiz 2020-03-23 21:53:49 +01:00
parent e32ed5c5cd
commit 1414928029
1 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ public class AlertProcessor extends AdempiereServer
Exception error = null; Exception error = null;
try try
{ {
pstmt = DB.prepareStatement (sql, trxName); pstmt = DB.prepareNormalReadReplicaStatement(sql, trxName);
rs = pstmt.executeQuery (); rs = pstmt.executeQuery ();
ResultSetMetaData meta = rs.getMetaData(); ResultSetMetaData meta = rs.getMetaData();
boolean isFirstRow = true; boolean isFirstRow = true;
@ -389,7 +389,7 @@ public class AlertProcessor extends AdempiereServer
Exception error = null; Exception error = null;
try try
{ {
pstmt = DB.prepareStatement (sql, trxName); pstmt = DB.prepareNormalReadReplicaStatement(sql, trxName);
rs = pstmt.executeQuery (); rs = pstmt.executeQuery ();
ResultSetMetaData meta = rs.getMetaData(); ResultSetMetaData meta = rs.getMetaData();
while (rs.next ()) while (rs.next ())