Potential SQL bug

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Potential SQL bug

Postby 4StarGen » Mon Dec 16, 2024 5:20 pm

If you make this as expression filter it doesn't filter for the active player, why?

Code: Select all
((cash_hand_summary.str_aggressors_p LIKE '8090%') OR (cash_hand_summary.str_aggressors_p LIKE '8080%') OR (cash_hand_summary.str_aggressors_p LIKE '8191%') OR (cash_hand_summary.str_aggressors_p LIKE '8181%') OR (cash_hand_summary.str_aggressors_p LIKE '8292%') OR (cash_hand_summary.str_aggressors_p LIKE '8282%') OR (cash_hand_summary.str_aggressors_p LIKE '8393%') OR (cash_hand_summary.str_aggressors_p LIKE '8383%') AND
        (cash_hand_player_statistics.position <= 3) AND
        (cash_hand_player_statistics.flg_p_4bet) AND
        cash_hand_summary.cnt_players > 2)
4StarGen
 
Posts: 948
Joined: Sat Mar 08, 2014 6:58 am

Re: Potential SQL bug

Postby Flag_Hippo » Tue Dec 17, 2024 8:06 am

Bracketing the expression like this works:

Example wrote:((cash_hand_summary.str_aggressors_p LIKE '8090%') OR (cash_hand_summary.str_aggressors_p LIKE '8080%') OR (cash_hand_summary.str_aggressors_p LIKE '8191%') OR (cash_hand_summary.str_aggressors_p LIKE '8181%') OR (cash_hand_summary.str_aggressors_p LIKE '8292%') OR (cash_hand_summary.str_aggressors_p LIKE '8282%') OR (cash_hand_summary.str_aggressors_p LIKE '8393%') OR (cash_hand_summary.str_aggressors_p LIKE '8383%')) AND
(cash_hand_player_statistics.position <= 3) AND
(cash_hand_player_statistics.flg_p_4bet) AND
(cash_hand_summary.cnt_players > 2)
Flag_Hippo
Moderator
 
Posts: 15262
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 49 guests

cron