SQL Query bug with "Bonus" data

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
7 posts • Page 1 of 1
BGabor
Posts:8
Joined: Mon Oct 30, 2017 11:43 am

SQL Query bug with "Bonus" data

Post by BGabor »

Hello All!

I found some wierd behaviour with SQL query's "bonus number of values before and after the query" functionality.
There are two boolean DP-s archived, b02. and b04.
I want to know two things:
1. Values of the DP-s in the given time range (e.g. 13:40:00 - 13:41:00)
2. First valid value of DP-s before the start time (13:40:00)

Attached the query results.
When I query for both DP-s, I only get values from "b02." before 13:40:00
If I query for only b04., there is value before 13:40:00

Seems like the query does not return the correct DP-s, when searching for both.

I've tried the same query but instead of boolean values I used integers.
It worked as expected.
Attachments
twoValuesQuery.png
oneValueQuery.png

BGabor
Posts:8
Joined: Mon Oct 30, 2017 11:43 am

Re: SQL Query bug with "Bonus" data

Post by BGabor »

Added some clarification about the "Bonus" data defintion I've mentioned.
Attachments
help.png

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: SQL Query bug with "Bonus" data

Post by leoknipp »

If the bonus parameter works or not may also depend on the database you are using to save the values.

Which WinCC OA version and patch level is installed?
Which type of database is used for archiving?

In case of RDB archiving, is queryRDBDirect used or not?

Best Regards
Leopold Knipp
Senior Support Specialist

BGabor
Posts:8
Joined: Mon Oct 30, 2017 11:43 am

Re: SQL Query bug with "Bonus" data

Post by BGabor »

Using version 3.16 P001.
I'm using internal WinCC OA archiving ( called HDB?).

Regards,
Gabor

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: SQL Query bug with "Bonus" data

Post by leoknipp »

I have tested and I have seen a problem when reading data with bonus values.
The problem was forwarded to our development department for further analysis.

Best Regards
Leopold Knipp
Senior Support Specialist

BGabor
Posts:8
Joined: Mon Oct 30, 2017 11:43 am

Re: SQL Query bug with "Bonus" data

Post by BGabor »

Hello Leo,

Any update about this bug?

Regards,
Gabor Baroczi
leoknipp wrote: ↑ Mon Feb 24, 2020 12:16 pm I have tested and I have seen a problem when reading data with bonus values.
The problem was forwarded to our development department for further analysis.

Best Regards
Leopold Knipp
Senior Support Specialist

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: SQL Query bug with "Bonus" data

Post by leoknipp »

A solution for this issue is not available up to now and it is not defined when it will be analyzed.

Best Regards
Leopold Knipp
Senior Support Specialist

7 posts • Page 1 of 1