[mythtv-commits] Ticket #12795: Never Record button in the mythweb/tv/detail/ page results in an sql exception error

MythTV noreply at mythtv.org
Wed Aug 3 01:26:27 UTC 2016


#12795: Never Record button in the mythweb/tv/detail/ page results in an sql
exception error
------------------------------------------+--------------------------------
 Reporter:  scottn@…                      |          Owner:
     Type:  Bug Report - General          |         Status:  infoneeded_new
 Priority:  minor                         |      Milestone:  unknown
Component:  MythTV - General              |        Version:  0.28.0
 Severity:  medium                        |     Resolution:
 Keywords:  Never Record SQL Error crash  |  Ticket locked:  0
------------------------------------------+--------------------------------

Comment (by scottn@…):

 Upgraded to Mythbuntu 16.04.1 in the past couple of days and still getting
 this issue so now running version
 2:0.28.0+fixes.20160727.e5ce273-0ubuntu0mythbuntu5.

 I have worked around this issue but running the following SQLs:


 {{{
 SET SESSION sql_mode = 'NO_ZERO_DATE';
 }}}


 Required otherwise it complains about starttime and endtime having a
 defaul value of "0000-00-00 00:00:00"


 {{{
 alter table oldrecorded modify column inetref varchar(40) null;
 }}}


 Table schema now looks as follows and Never Record works again:


 {{{
 mysql> describe oldrecorded;
 +-------------+------------------+------+-----+---------------------+-------+
 | Field       | Type             | Null | Key | Default             |
 Extra |
 +-------------+------------------+------+-----+---------------------+-------+
 | chanid      | int(10) unsigned | NO   | MUL | 0                   |
 |
 | starttime   | datetime         | NO   | PRI | 0000-00-00 00:00:00 |
 |
 | endtime     | datetime         | NO   | MUL | 0000-00-00 00:00:00 |
 |
 | title       | varchar(128)     | NO   | PRI |                     |
 |
 | subtitle    | varchar(128)     | NO   | MUL |                     |
 |
 | description | varchar(16000)   | NO   | MUL |                     |
 |
 | season      | smallint(5)      | NO   |     | NULL                |
 |
 | episode     | smallint(5)      | NO   |     | NULL                |
 |
 | category    | varchar(64)      | NO   |     |                     |
 |
 | seriesid    | varchar(64)      | YES  | MUL | NULL                |
 |
 | programid   | varchar(64)      | YES  | MUL | NULL                |
 |
 | inetref     | varchar(40)      | YES  |     | NULL                |
 |
 | findid      | int(11)          | NO   |     | 0                   |
 |
 | recordid    | int(11)          | NO   | MUL | 0                   |
 |
 | station     | varchar(20)      | NO   | PRI |                     |
 |
 | rectype     | int(10) unsigned | NO   |     | 0                   |
 |
 | duplicate   | tinyint(1)       | NO   |     | 0                   |
 |
 | recstatus   | int(11)          | NO   | MUL | 0                   |
 |
 | reactivate  | smallint(6)      | NO   |     | 0                   |
 |
 | generic     | tinyint(1)       | NO   |     | NULL                |
 |
 | future      | tinyint(1)       | NO   | MUL | 0                   |
 |
 +-------------+------------------+------+-----+---------------------+-------+
 21 rows in set (0.01 sec)
 }}}


 Hope this helps.

 Thanks
 Scott

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12795#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list