[mythtv] mythfilldatabase error????

Mr. Adam ALLEN mythtv-dev@snowman.net
Wed Jan 1 18:41:51 EST 2003


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

On Wed, 2003-01-01 at 17:53, Isaac Richards wrote:
> On Wednesday 01 January 2003 10:14 am, Mr. Adam ALLEN wrote:
> > Was looking for a nice simple "s/'/\\'/g"  bit of code for C++, but
> > didn't stumble across anything which enabled my lack of C++ knowledge t=
o
> > make a patch :-(.
>=20
> Look about two lines above where it creates that insert line in filldata.=
cpp
>=20
> Isaac

Didn't find that bit of code- started off with the text books!

--- 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("\\'""));

             querystr.sprintf("INSERT INTO program (chanid,starttime,endtim=
e,"
                              "title,subtitle,description,category) VALUES(=
%d,"



--=20
Regards,
Adam Allen.

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


--=-dncnatxJOu2W8a4MJjPa
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+EzZvAPXfGBB3hLYRAmXbAJ42bbWGyhrnNy2WOpuT4k77yTtbZwCdHUIp
PuAqMrQOr0x9zdFChsGUaq0=
=yMmJ
-----END PGP SIGNATURE-----

--=-dncnatxJOu2W8a4MJjPa--



More information about the mythtv-dev mailing list