lookup_isbuddy

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

lookup_isbuddy

Postby fanatus » Thu Nov 13, 2008 6:32 pm

Hello, guys!

I am working on a SQL query to find my current buddy list in pokertracker v3.00. I found out that there should be a function lookup_isbuddy but if a I looked at the tables that were specified in the DB, i could not find it.

My query looks like this:

SELECT lookup_isbuddy(player.player_name, holdem_table_session_summary.id_site) AS Is_This_Player_Buddy,
player.player_name AS This_Player_Is_Called
FROM player, holdem_table_session_summary
WHERE player.id_player = holdem_table_session_summary.id_player;

Could you help me understand how to use this function lookup_isbuddy or am I supposed to write a new function? If so, than how does the function that finds buddy list works? ;)
fanatus
 
Posts: 2
Joined: Thu Nov 13, 2008 6:16 pm

Re: lookup_isbuddy

Postby kraada » Thu Nov 13, 2008 6:39 pm

I'm not sure where you heard about lookup_isbuddy but there is no such lookup table in the database as far as I am aware.

The buddy list is available in the Buddies.cfg file in C:\Program Files\PokerTracker 3\Data\Config\. It's a text file containing the site name, the player name and "true", delimited by colons and semicolons. If you take a look at it, it should be fairly easy to understand.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: lookup_isbuddy

Postby fanatus » Thu Nov 13, 2008 7:07 pm

That was useful.
Thank You, Buddy
fanatus
 
Posts: 2
Joined: Thu Nov 13, 2008 6:16 pm


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 3 guests