Skip to content
Snippets Groups Projects
Commit 81f018aa authored by Arthur Coolen's avatar Arthur Coolen
Browse files

Bug1164:

or conditions between hooks
parent 1bf8e5ef
No related branches found
No related tags found
No related merge requests found
...@@ -351,7 +351,7 @@ bool setStates(string DP,int state, int originatorState,string message) { ...@@ -351,7 +351,7 @@ bool setStates(string DP,int state, int originatorState,string message) {
} }
bool setChildStates(string DP,int state, int originatorState, string message) { bool setChildStates(string DP,int state, int originatorState, string message) {
string query = "SELECT '_online.._value' FROM '" + DP + "*.**.status.childState' WHERE '.status.leaf:_online.._value' == 0 AND '.status.childState:_online.._value' < " + state + " OR '.status.childState:_online.._value' == "+OPERATIONAL+ " OR '.status.childState:_online.._value' == "+originatorState; string query = "SELECT '_online.._value' FROM '" + DP + "*.**.status.childState' WHERE '.status.leaf:_online.._value' == 0 AND ('.status.childState:_online.._value' < " + state + " OR '.status.childState:_online.._value' == "+OPERATIONAL+ " OR '.status.childState:_online.._value' == "+originatorState+")";
if (bDebug) DebugN("monitorStateResets.ctl:setChildStates|composed statequery: "+query); if (bDebug) DebugN("monitorStateResets.ctl:setChildStates|composed statequery: "+query);
dyn_dyn_anytype tab; dyn_dyn_anytype tab;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment