IDEMPIERE-4219 Alert query in Replica database (FHCA-1200)
This commit is contained in:
parent
e32ed5c5cd
commit
1414928029
|
@ -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 ())
|
||||||
|
|
Loading…
Reference in New Issue