|
|
|
@ -228,7 +228,7 @@ public class StdJDBCDelegate implements DriverDelegate, StdJDBCConstants {
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
ps = conn |
|
|
|
|
.prepareStatement(rtp(UPDATE_TRIGGER_STATES_FROM_OTHER_STATES)); |
|
|
|
|
.prepareStatement(rtp(UPDATE_TRIGGER_STATES_FROM_OTHER_2_STATES)); |
|
|
|
|
ps.setString(1, newState); |
|
|
|
|
ps.setString(2, oldState1); |
|
|
|
|
ps.setString(3, oldState2); |
|
|
|
@ -238,6 +238,23 @@ public class StdJDBCDelegate implements DriverDelegate, StdJDBCConstants {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int updateTriggerStatesFromOtherStates(Connection conn, String newState, String oldState1, String oldState2, String oldState3) throws SQLException { |
|
|
|
|
|
|
|
|
|
PreparedStatement ps = null; |
|
|
|
|
try { |
|
|
|
|
ps = conn.prepareStatement(rtp(UPDATE_TRIGGER_STATES_FROM_OTHER_3_STATES)); |
|
|
|
|
ps.setString(1, newState); |
|
|
|
|
ps.setString(2, oldState1); |
|
|
|
|
ps.setString(3, oldState2); |
|
|
|
|
ps.setString(4, oldState3); |
|
|
|
|
|
|
|
|
|
return ps.executeUpdate(); |
|
|
|
|
} finally { |
|
|
|
|
closeStatement(ps); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* <p> |
|
|
|
|
* Get the names of all of the triggers that have misfired. |
|
|
|
|