|
|
@ -227,8 +227,7 @@ public class StdJDBCDelegate implements DriverDelegate, StdJDBCConstants { |
|
|
|
PreparedStatement ps = null; |
|
|
|
PreparedStatement ps = null; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
ps = conn |
|
|
|
ps = conn.prepareStatement(rtp(UPDATE_TRIGGER_STATES_FROM_OTHER_2_STATES)); |
|
|
|
.prepareStatement(rtp(UPDATE_TRIGGER_STATES_FROM_OTHER_2_STATES)); |
|
|
|
|
|
|
|
ps.setString(1, newState); |
|
|
|
ps.setString(1, newState); |
|
|
|
ps.setString(2, oldState1); |
|
|
|
ps.setString(2, oldState1); |
|
|
|
ps.setString(3, oldState2); |
|
|
|
ps.setString(3, oldState2); |
|
|
@ -255,6 +254,21 @@ public class StdJDBCDelegate implements DriverDelegate, StdJDBCConstants { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public int updateTriggerAppointId(Connection conn, String oldId, String newId) throws SQLException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PreparedStatement ps = null; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
ps = conn.prepareStatement(rtp(UPDATE_TRIGGER_APPOINT_ID)); |
|
|
|
|
|
|
|
ps.setString(1, newId); |
|
|
|
|
|
|
|
ps.setString(2, oldId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ps.executeUpdate(); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
closeStatement(ps); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* Get the names of all of the triggers that have misfired. |
|
|
|
* Get the names of all of the triggers that have misfired. |
|
|
|