[mythtv-commits] Ticket #9651: "length mismatch between programinfo" error v0.23
MythTV
noreply at mythtv.org
Thu Mar 10 10:36:38 UTC 2011
#9651: "length mismatch between programinfo" error v0.23
----------------------------------+----------------------------
Reporter: awa_wp@… | Owner:
Type: Bug Report - General | Status: new
Priority: major | Milestone: unknown
Component: MythTV - General | Version: 0.23-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+----------------------------
Comment (by awa_wp@…):
I prepare simple workaround for this error:
delimiter //
CREATE TRIGGER recorded_check_insert BEFORE INSERT ON recorded
FOR EACH ROW
BEGIN
IF NEW.subtitle = '\0' THEN
SET NEW.subtitle = '';
END IF;
IF NEW.description = '\0' THEN
SET NEW.description = '';
END IF;
END;//
CREATE TRIGGER recorded_check_update BEFORE UPDATE ON recorded
FOR EACH ROW
BEGIN
IF NEW.subtitle = '\0' THEN
SET NEW.subtitle = '';
END IF;
IF NEW.description = '\0' THEN
SET NEW.description = '';
END IF;
END;//
CREATE TRIGGER program_check_insert BEFORE INSERT ON program
FOR EACH ROW
BEGIN
IF NEW.subtitle = '\0' THEN
SET NEW.subtitle = '';
END IF;
IF NEW.description = '\0' THEN
SET NEW.description = '';
END IF;
END;//
CREATE TRIGGER program_check_update BEFORE UPDATE ON program
FOR EACH ROW
BEGIN
IF NEW.subtitle = '\0' THEN
SET NEW.subtitle = '';
END IF;
IF NEW.description = '\0' THEN
SET NEW.description = '';
END IF;
END;//
delimiter ;
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9651#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list