[mythtv-commits] Ticket #13056: database error in AddRecordSchedule returns 'ok'

MythTV noreply at mythtv.org
Sat Jun 17 19:39:37 UTC 2017


#13056: database error in AddRecordSchedule returns 'ok'
---------------------------------------------+------------------------
 Reporter:  Jeff Dwork <jeffdwork47@…>       |          Owner:  bmeek
     Type:  Bug Report - General             |         Status:  closed
 Priority:  minor                            |      Milestone:  29.0
Component:  MythTV - Services API - Backend  |        Version:  0.28.1
 Severity:  medium                           |     Resolution:  fixed
 Keywords:                                   |  Ticket locked:  0
---------------------------------------------+------------------------
Changes (by Bill Meek <bmeek@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a29633136dcffff10b74d877fcac2cf14bc863d5/mythtv"]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="a29633136dcffff10b74d877fcac2cf14bc863d5"
 Services API: Add/UpdateRecordSchedule, prevent DB Errors when timestamps
 aren't passed

 Because they aren't required for SearchTypes other than None and Manual,
 the start/end date/time, weren't being validated. If StartTime and EndTime
 prarmeters weren't passed, then when an INSERT/UPDATE was done, the NULL
 fields caused a DB Error and the API returned -1 ({"uint": "4294967295"}.)

 This fix allows NULLs in the start/end date/time in the record table.

 Fixes #13056
 }}}

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


More information about the mythtv-commits mailing list