[mythtv-commits] mythtv commit: r14983 - in branches/mythtv-qt4 by janne

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Thu Nov 29 02:01:23 UTC 2007


      Author: janne
        Date: 2007-11-29 02:01:22 +0000 (Thu, 29 Nov 2007)
New Revision: 14983
   Changeset: http://cvs.mythtv.org/trac/changeset/14983

Modified:

   branches/mythtv-qt4/libs/libmyth/mythcontext.cpp
   branches/mythtv-qt4/libs/libmyth/mythdbcon.cpp
   branches/mythtv-qt4/libs/libmyth/mythdbcon.h
   branches/mythtv-qt4/libs/libmyth/settings.cpp
   branches/mythtv-qt4/libs/libmythtv/channeleditor.cpp
   branches/mythtv-qt4/libs/libmythtv/channelutil.cpp
   branches/mythtv-qt4/libs/libmythtv/customedit.cpp
   branches/mythtv-qt4/libs/libmythtv/datadirect.cpp
   branches/mythtv-qt4/libs/libmythtv/dbox2epg.cpp
   branches/mythtv-qt4/libs/libmythtv/eit.cpp
   branches/mythtv-qt4/libs/libmythtv/eit.h
   branches/mythtv-qt4/libs/libmythtv/eitfixup.cpp
   branches/mythtv-qt4/libs/libmythtv/eithelper.cpp
   branches/mythtv-qt4/libs/libmythtv/iptvchannel.cpp
   branches/mythtv-qt4/libs/libmythtv/livetvchain.cpp
   branches/mythtv-qt4/libs/libmythtv/mpeg/dvbdescriptors.cpp
   branches/mythtv-qt4/libs/libmythtv/playgroup.cpp
   branches/mythtv-qt4/libs/libmythtv/previouslist.cpp
   branches/mythtv-qt4/libs/libmythtv/profilegroup.cpp
   branches/mythtv-qt4/libs/libmythtv/progfind.cpp
   branches/mythtv-qt4/libs/libmythtv/proglist.cpp
   branches/mythtv-qt4/libs/libmythtv/programdata.cpp
   branches/mythtv-qt4/libs/libmythtv/programinfo.cpp
   branches/mythtv-qt4/libs/libmythtv/sr_items.h
   branches/mythtv-qt4/libs/libmythtv/storagegroup.cpp
   branches/mythtv-qt4/libs/libmythtv/tv_rec.cpp
   branches/mythtv-qt4/programs/mythbackend/autoexpire.cpp
   branches/mythtv-qt4/programs/mythbackend/mainserver.cpp
   branches/mythtv-qt4/programs/mythbackend/scheduler.cpp
   branches/mythtv-qt4/programs/mythfilldatabase/channeldata.cpp
   branches/mythtv-qt4/programs/mythfrontend/channelrecpriority.cpp
   branches/mythtv-qt4/programs/mythfrontend/custompriority.cpp
   branches/mythtv-qt4/programs/mythfrontend/globalsettings.cpp
   branches/mythtv-qt4/programs/mythfrontend/manualschedule.cpp
   branches/mythtv-qt4/programs/mythfrontend/networkcontrol.cpp
   branches/mythtv-qt4/programs/mythfrontend/playbackbox.cpp
   branches/mythtv-qt4/programs/mythfrontend/programrecpriority.cpp
   branches/mythtv-qt4/programs/mythfrontend/statusbox.cpp
   branches/mythtv-qt4/programs/mythshutdown/main.cpp

Log:

change database usage. The conversion from and to utf-8 is done implicitly

Qt4's QSqlQuery tries to insert NULL for null values. Calling .toUtf8()
on an empty but non null QString will result in a null QByteArray.
Inserting the null ByteArray into a non NULL field will consequently fail.
I reported it to Trolltech but I don't expect them to fix it in a timely
fashion if at all. The behaviour hasn't changed. Upstream ticket number
is 189442. The change is in QSqlQuery.
MSqlQuery::bindValue() and value() will do the conversion implicitly
and handle empty string correctly.
I hope I removed the {from|to}Utf() from all queries.





More information about the mythtv-commits mailing list