Expression Bug?!

Questions and discussion about PokerTracker 4 for Windows

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Expression Bug?!

Postby js2002 » Tue Jan 31, 2012 6:45 pm

I put this into a hand report:

char_length(cash_hand_summary.str_aggressors_p) >= 3 AND cash_hand_player_statistics.position BETWEEN substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int and substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int

And put

cash_hand_player_statistics.position = 8
substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int = 0
substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int = 8

So I see Player/Hero in BB Position and the 2bettor in BU Position. Thats correct so far.
Now the problem:

cash_hand_player_statistics.position BETWEEN substring(cash_hand_summary.str_aggressors_p from 2 for 1)::int and substring(cash_hand_summary.str_aggressors_p from 3 for 1)::int
in real number:
8 BETWEEN (0 and 8) = true

is that correct?
I think only 1-7 are between? Thats the SQL definition!
(I googled some text sql between examples, there 0 is in the range but never 8.)

bug or not?
define between and not between please.
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Return to PokerTracker 4

Who is online

Users browsing this forum: SacriVision and 18 guests