Invalid Expression - The statement is not valid SQL

Questions and discussion about PokerTracker 4 for Windows

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Invalid Expression - The statement is not valid SQL

Postby OneKef » Mon Aug 31, 2020 2:14 pm

Good evening!

Trying to create custom stats (following this thread https://www.pokertracker.com/forums/viewtopic.php?f=61&t=95858&p=346030#p346030 ) when I go to save,report that error in object.
What does it mean?
Thank you :)
Attachments
Cattura.JPG
(21.82 KiB) Downloaded 924 times
OneKef
 
Posts: 56
Joined: Mon Aug 31, 2020 2:02 pm

Re: Invalid Expression - The statement is not valid SQL

Postby Flag_Hippo » Tue Sep 01, 2020 5:48 am

It means the expression you are using isn't valid and has a mistake. Please copy/paste exactly what you are using here so we can see where the problem is.
Flag_Hippo
Moderator
 
Posts: 17049
Joined: Tue Jan 31, 2012 7:50 am

Re: Invalid Expression - The statement is not valid SQL

Postby OneKef » Wed Sep 02, 2020 5:03 am

Hi, thanks for the answer!
I am using this , trying to clone and modify the RFI ,to create it by stack , in this case from 10 to 20bb :

Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_first_raise AND tourney_hand_player_statistics.flg_p_open_opp, 1, 0])AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) BETWEEN 10 AND 20


I'm also trying to change something , comparing what I can find here , but nothing .
:heart:
OneKef
 
Posts: 56
Joined: Mon Aug 31, 2020 2:02 pm

Re: Invalid Expression - The statement is not valid SQL

Postby Flag_Hippo » Wed Sep 02, 2020 12:09 pm

The code from the database schema needs to be contained within the sum(if[, 1, 0]) like this:

sum(if[tourney_hand_player_statistics.flg_p_first_raise AND tourney_hand_player_statistics.flg_p_open_opp AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) BETWEEN 10 AND 20, 1, 0])
Flag_Hippo
Moderator
 
Posts: 17049
Joined: Tue Jan 31, 2012 7:50 am

Re: Invalid Expression - The statement is not valid SQL

Postby OneKef » Thu Sep 03, 2020 5:03 am

Always thanks!

thanks to your clues maybe I got to something,I will update.
OneKef
 
Posts: 56
Joined: Mon Aug 31, 2020 2:02 pm


Return to PokerTracker 4

Who is online

Users browsing this forum: No registered users and 23 guests