[mythtv] mythfilldatabase error????

Mr. Adam ALLEN mythtv-dev@snowman.net
Fri Jan 3 12:56:48 EST 2003


--=-GmKbROzJQ1S0mhgari/I
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2003-01-02 at 08:58, Andrew M. Bishop wrote:
> "Mr. Adam ALLEN" <adam@dynamicinteraction.co.uk> writes:
>=20
> > Didn't find that bit of code- started off with the text books!
> >=20
> > --- filldata.cpp        2003-01-01 18:10:34.000000000 +0000
> > +++ patched_filldata.cpp        2003-01-01 18:08:46.000000000 +0000
> > @@ -758,6 +758,9 @@
> >              (*i).title.replace(QRegExp("\""), QString("\\\""));
> >              (*i).subtitle.replace(QRegExp("\""), QString("\\\""));
> >              (*i).desc.replace(QRegExp("\""), QString("\\\""));
> > +            (*i).title.replace(QRegExp("'"), QString("\\'"));
> > +            (*i).subtitle.replace(QRegExp("'"), QString("\\'"));
> > +            (*i).desc.replace(QRegExp("'"), QString("\\'""));
> >=20
> >              querystr.sprintf("INSERT INTO program (chanid,starttime,en=
dtime,"
> >                               "title,subtitle,description,category) VAL=
UES(%d,"
>=20
> If you make that patch you must also make a similar patch in the files=20
> libs/libmyth/programinfo.cpp and programs/mythfrontend/viewscheduled.cpp.
>=20
> I am very suprised that you need to do this since there are many
> programs that use a single quote in the description.  I have never had
> any problems with these, only with the double quotes which is why I
> escaped them with a backslash in those three files.
>=20
> Are you sure that this change was the one that stopped the errors and
> it was not just coincidence?

coincidence sounds like a good explanation - not been able to reproduce
it since.

--=20
Regards,
Adam Allen.

adam@dynamicinteraction.co.uk
pgp http://search.keyserver.net:11371/pks/lookup?op=3Dvindex&search=3Dadam%=
40dynamicinteraction.co.uk


--=-GmKbROzJQ1S0mhgari/I
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA+FYiQAPXfGBB3hLYRAusIAKDWc38LWrfE5Z85NmE2Eu3dOtCSfQCg20ZU
SJFGLFhaPchxUwdbjjM6dlU=
=BQ0d
-----END PGP SIGNATURE-----

--=-GmKbROzJQ1S0mhgari/I--



More information about the mythtv-dev mailing list