[mythtv-commits] Ticket #13420: DB Error in mythtv-setup and QString initialization
MythTV
noreply at mythtv.org
Wed Mar 6 14:59:40 UTC 2019
#13420: DB Error in mythtv-setup and QString initialization
-------------------------------------------------+-------------------------
Reporter: Klaas de Waal | Owner: David
| Hampton
Type: Patch - Bug Fix | Status: closed
Priority: minor | Milestone:
| needs_triage
Component: MythTV - Channel Scanner | Version: Master
| Head
Severity: medium | Resolution: fixed
Keywords: DVB channelscan QString | Ticket locked: 0
initialization |
-------------------------------------------------+-------------------------
Changes (by David Hampton <mythtv@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fcc1aa52245c5b6bc852e43f26182aef8d3a3269/mythtv"
fcc1aa522/mythtv]:
{{{
#!CommitTicketReference repository="mythtv"
revision="fcc1aa52245c5b6bc852e43f26182aef8d3a3269"
Catch and fix uninitialized QStrings passed to SQL code.
Most of Qt5 treats an uninitialized string and an empty string as the
same thing. QSqlQuery doesn't, storing NULL for the former and "" for
the latter. Add a new function for storing a non-null database field
that will store both of these QStrings as "".
Fixes #13420
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13420#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list