[mythtv] Re: seg fault with myfilldatabase

Mike Drons mdrons at ins.com
Thu Feb 13 19:40:47 EST 2003


Is seems that it is dropping some of the INSERTS into the DB.   Here are 3
examples:

INSERT INTO program
(chanid,starttime,endtime,title,subtitle,description,category) VALUES(1001,
20030214230000, , "Pet Star", "", "", "Animals");
INSERT INTO program
(chanid,starttime,endtime,title,subtitle,description,category) VALUES(1010,
20030214233500, , "The Tonight Show With Jay Leno", "", "Evan Marriott
(``Joe Millionaire''); musical guest David Gray.", "Talk");
INSERT INTO program
(chanid,starttime,endtime,title,subtitle,description,category) VALUES(1011,
20030214220000, , "Government Access", "", "", "");

You can see the double comma, where the end date should be.  This is using
the new mythfilldatabase from CVS.

Michael Drons

-----Original Message-----
From: mythtv-dev-bounces at snowman.net [mailto:mythtv-dev-bounces at snowman.net]
On Behalf Of Doug Zobel
Sent: Thursday, February 13, 2003 7:28 PM
To: mythtv-dev at snowman.net
Subject: [mythtv] Re: seg fault with myfilldatabase

FYI: an empty string isn't a NULL string.  From the QString manpage:

bool QString::isEmpty () const
       Returns TRUE if the string is empty, i.e., if length() == 0. Thus, 
null
       strings are empty strings.

           QString a( "" );
           a.isEmpty();        // TRUE
           a.isNull();         // FALSE
           QString b;
           b.isEmpty();        // TRUE
           b.isNull();         // TRUE


On Mon Feb 10 at 14:15:36 EST 2003 Neil McCurdy wrote:

>To resolve, the following change needs to be made to filldata.cpp:
>
>Line ~ 188
>
>In parseProgram:
>
>     if (split.size() > 0)
>         pginfo->endts = split[0];
>     else
>         pginfo->endts = "";
>
>Change to:
>
>     if (split.size() > 0)
>         pginfo->endts = split[0];
>     else
>         pginfo->endts = QString::null;
>
>For some reason "" isn't treated as null.  It looks there are still some
>null endtimes being generated by xmltv.

Neil


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

_______________________________________________
mythtv-dev mailing list
mythtv-dev at snowman.net
http://www.snowman.net/mailman/listinfo/mythtv-dev




More information about the mythtv-dev mailing list