I am not sure but i guess there's a pb with my DB...
when i try to go to view Stats, an error message occurs : "more than one row returned by a subquery used as an expression" any id to repair my db (vacuum analysis and etc done...
hope it can be resolved...
(EDIT) support is contacted) :/
here is what log said :
- Code: Select all
2014/12/02 01:56:00.607 [00001]: [0000158C][Query::QueryThread] Thread [0x0000158C]: Begin
2014/12/02 01:56:00.608 [00001]: [0000158C][Query] Executing SQL (Thread): SELECT (tourney_summary.id_tourney) as "id_tourney_summary", (player_real.id_site) as "id_site", (tourney_summary.tourney_no) as "tourney_no", (tourney_summary.amt_buyin) as "amt_buyin", (tourney_summary.amt_bounty) as "amt_bounty_per", (tourney_summary.currency) as "tourney_currency", (tourney_summary.amt_fee) as "amt_fee", ((tourney_summary.amt_buyin) + (tourney_summary.amt_fee)) as "amt_buyin_fee", (timezone('UTC', tourney_summary.date_start + INTERVAL '0 HOURS')) as "tourney_date_start", (timezone('UTC', tourney_summary.date_end + INTERVAL '0 HOURS')) as "tourney_date_end", (tourney_summary.id_table_type) as "id_table_type", (tourney_summary.id_tourney_type) as "id_tourney_type", (tourney_summary.id_gametype) as "id_gametype_summary", (sum((case when(tourney_summary.val_curr_conv != 0) then tourney_summary.val_curr_conv * (tourney_results.amt_won + tourney_results.cnt_bounty * tourney_summary.amt_bounty) else 0.0 end))) as "amt_won_curr_conv", (sum((case when(tourney_summary.val_curr_conv != 0) then tourney_summary.val_curr_conv * (tourney_summary.amt_buyin + tourney_summary.amt_fee + tourney_summary.amt_rebuy * tourney_results.cnt_rebuy + tourney_summary.amt_addon * tourney_results.cnt_addon + tourney_summary.amt_bounty) else 0.0 end))) as "amt_buyin_ttl_curr_conv" FROM player player_real, tourney_results, tourney_summary WHERE (player_real.id_player = tourney_results.id_player_real) AND (tourney_results.id_tourney = tourney_summary.id_tourney) AND (tourney_results.id_player = (SELECT id_player FROM player WHERE player_name_search=E'_enorme_' AND id_site='2200')) AND ((((tourney_summary.date_end >= '2014/12/01 03:00:00' and tourney_summary.date_end <= '2014/12/02 02:59:59')))) GROUP BY (tourney_summary.id_tourney), (player_real.id_site), (tourney_summary.tourney_no), (tourney_summary.amt_buyin), (tourney_summary.amt_bounty), (tourney_summary.currency), (tourney_summary.amt_fee), ((tourney_summary.amt_buyin) + (tourney_summary.amt_fee)), (timezone('UTC', tourney_summary.date_start + INTERVAL '0 HOURS')), (timezone('UTC', tourney_summary.date_end + INTERVAL '0 HOURS')), (tourney_summary.id_table_type), (tourney_summary.id_tourney_type), (tourney_summary.id_gametype)
2014/12/02 01:56:00.610 [00001]: [- Main -][ptQueryCtrlBase] ptQueryCtrlBase::doLoad(): Begin
2014/12/02 01:56:00.610 [00000]: [- Main -][ptQueryCtrlBase] ptQueryCtrlBase::doLoad(): End
2014/12/02 01:56:00.611 [00002]: [000011D8][Query::QueryThread] Thread [0x000011D8]: Begin
2014/12/02 01:56:00.612 [00001]: [000011D8][Query] Executing SQL (Thread): SELECT (date_trunc('day', timezone('UTC', tourney_summary.date_start + INTERVAL '-4 HOURS'))) as "__cal__date_played_grp", (count(distinct tourney_summary.id_tourney)) as "cnt_tourneys", (sum((case when(tourney_summary.val_curr_conv != 0) then tourney_summary.val_curr_conv * (tourney_results.amt_won + tourney_results.cnt_bounty * tourney_summary.amt_bounty) else 0.0 end))) as "amt_won_curr_conv", (sum((case when(tourney_summary.val_curr_conv != 0) then tourney_summary.val_curr_conv * (tourney_summary.amt_buyin + tourney_summary.amt_fee + tourney_summary.amt_rebuy * tourney_results.cnt_rebuy + tourney_summary.amt_addon * tourney_results.cnt_addon + tourney_summary.amt_bounty) else 0.0 end))) as "amt_buyin_ttl_curr_conv" FROM tourney_results, tourney_summary WHERE (tourney_results.id_tourney = tourney_summary.id_tourney) AND (tourney_results.id_player = (SELECT id_player FROM player WHERE player_name_search=E'_enorme_' AND id_site='2200')) AND ((tourney_summary.date_start >= '2014/07/01 02:00:00' AND tourney_summary.date_start <= '2014/08/01 01:59:59')) GROUP BY (date_trunc('day', timezone('UTC', tourney_summary.date_start + INTERVAL '-4 HOURS')))
2014/12/02 01:56:00.688 [00075]: [0000158C][PostgresConnection (Error)] Error: Unable to execute query: Fatal Error; Reason: Error: (ERROR: more than one row returned by a subquery used as an expression )
2014/12/02 01:56:00.688 [00000]: [0000158C][Query] Query execution time: 79.39971245 ms
2014/12/02 01:56:00.693 [00004]: [000011D8][PostgresConnection (Error)] Error: Unable to execute query: Fatal Error; Reason: Error: (ERROR: more than one row returned by a subquery used as an expression )
2014/12/02 01:56:00.693 [00000]: [000011D8][Query] Query execution time: 80.30590854 ms
