[mythtv-commits] Ticket #12872: trying to get a program listing

MythTV noreply at mythtv.org
Thu Sep 8 15:36:38 UTC 2016


#12872: trying to get a program listing
--------------------------------------+-------------------------
     Reporter:  jbeck2@…              |      Owner:  stuarta
         Type:  Bug Report - General  |     Status:  new
     Priority:  blocker               |  Milestone:  unknown
    Component:  Plugin - MythWeb      |    Version:  Unspecified
     Severity:  high                  |   Keywords:
Ticket locked:  0                     |
--------------------------------------+-------------------------
 TV listings fail:
     datetime:  2016-09-08 10:33:04 (CDT)
     errornum:  256
   error type:  User Error
 error string:  !!NoTrans: SQL Error: Expression #3 of SELECT list is not
 in GROUP BY clause and contains nonaggregated column
 'mythconverg.program.endtime' which is not functionally dependent on
 columns in GROUP BY clause; this is incompatible with
 sql_mode=only_full_group_by [#1055]!!
     filename:
 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
   error line:  98

 ==========================================================================

 Backtrace:

     file:
 /usr/share/mythtv/mythweb/classes/Database/Query/mysqlicompat.php
     line:  98
    class:
 function:  trigger_error
     type:
     args:  Array
 (
     [0] => SQL Error: Expression #3 of SELECT list is not in GROUP BY
 clause and contains nonaggregated column 'mythconverg.program.endtime'
 which is not functionally dependent on columns in GROUP BY clause; this is
 incompatible with sql_mode=only_full_group_by [#1055]
     [1] => 256
 )

     file:  /usr/share/mythtv/mythweb/classes/Database.php
     line:  261
    class:  Database_Query_mysqlicompat
 function:  execute
     type:  ->
     args:  Array
 (
     [0] => Array ( )
 )

     file:  /usr/share/mythtv/mythweb/modules/tv/includes/programs.php
     line:  140
    class:  Database
 function:  query
     type:  ->
     args:  Array
 (
     [0] => SELECT program.*,
                          UNIX_TIMESTAMP(program.starttime) AS
 starttime_unix,
                          UNIX_TIMESTAMP(program.endtime) AS endtime_unix,
                          IFNULL(programrating.system, "") AS rater,
                          IFNULL(programrating.rating, "") AS rating,
                          channel.callsign,
                          channel.channum
                   FROM program USE INDEX (id_start_end)
                        LEFT JOIN programrating USING (chanid, starttime)
                        LEFT JOIN channel ON program.chanid =
 channel.chanid
                        LEFT JOIN credits ON (program.chanid =
 credits.chanid AND program.starttime = credits.starttime)
                        LEFT JOIN people ON (credits.person =
 people.person)
                  WHERE program.chanid='1071' AND (program.endtime >
 FROM_UNIXTIME('1473348600') AND program.starttime <
 FROM_UNIXTIME('1473359400') AND program.starttime != program.endtime)
 GROUP BY channel.callsign, program.chanid, program.starttime ORDER BY
 program.starttime
 )

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12872>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list