04-29-2008 06:35 AM
I have discovered a potential bug within Lookout 6.1 which is causing problems within our application and am hoping that someone can help
I have a SQL query which is using the ETM function on a Boolean variable and when this is executed it sometimes returns an incorrect value. I believe that providing the variable being queried has changed state over the given time period the result returned is correct, however if the variable has been true for the whole time period then the result is incorrect i.e. it returns zero.
Any help would be apprectiated.
05-02-2008 12:08 PM
05-02-2008 12:23 PM
05-02-2008 12:29 PM
05-02-2008 12:36 PM
Mike, great - I'll ask my colleague Andy to copy you in on email to Ryan.
I knew about the etm seconds thing as we do lots of sql stuff and had a big job converting from 5 to 6. Wasn't aware of the date issue, not sure if I still fully understand. Ian
05-02-2008 12:44 PM - edited 05-02-2008 12:45 PM
SQL: SELECT MATH_ETM(TO_DISCRETE(""MyMachine/Process/Folder/Value"")) FROM IntData WHERE LocalTime BETWEEN '2008-02-02' AND '2008-02-29' and IntInterval ='1'First row the previous month (wrong):
Returns the first row as the etm for the 1st!
SQL: SELECT MATH_ETM(TO_DISCRETE(""MyMachine/Process/Folder/Value"")) FROM IntData WHERE LocalTime BETWEEN '2008-02-01' AND '2008-02-29' and IntInterval ='1'I played with this for weeks. Was a lot of fun to make it work on the reports.
Returns the runtime of the last day of the previous month.
05-02-2008 01:09 PM
"SELECT MATH_ETM(""mikedesktop/DataTable_SQL2/Switch1@value"") FROM IntData WHERE IntInterval = '"&Exp_Interval1&"' AND LocalTime > '"&TE_From&"' AND LocalTime <'"&TE_To&"'"appears to be correct throughout my tests.
started logging high from 10:57:00. ,
values from 10:58:00 to 10:59:00 return 60
values from 10:58:00 to 11:00:00 return 120 (120 seconds)
values from 10:57:00 to 11:00:00 return 180
set to low just over 1 second
values from 11:00:00 to 11:05:00 return 298.35 (which is correct for 5 minutes minus my quick on off)
set low at 11:06:10+
values from 11:06:00 to 11:07:00 return 10.87
values from 11:06:30 to 11:07:00 return 0
05-04-2008 01:30 AM
I'm not sure what's wrong with it. From my tests, I can reproduce the problem. If the interval is equal to query time, and is set to some specific values, such as 2 minutes, I see the query result = 0, not 120.
Mike, what's your Lookout version? Any DSC stuff installed? I want to check your Citadel version.
05-04-2008 07:09 PM
05-05-2008 01:27 AM