[mythtv-commits] [MythTV/mythtv] fcc1aa: Catch and fix uninitialized QStrings passed to SQL...

linuxdude42 noreply at github.com
Wed Mar 6 14:51:42 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: fcc1aa52245c5b6bc852e43f26182aef8d3a3269
      https://github.com/MythTV/mythtv/commit/fcc1aa52245c5b6bc852e43f26182aef8d3a3269
  Author: David Hampton <mythtv at love2code.net>
  Date:   2019-03-06 (Wed, 06 Mar 2019)

  Changed paths:
    M mythtv/libs/libmythbase/mythdbcon.cpp
    M mythtv/libs/libmythbase/mythdbcon.h
    M mythtv/libs/libmythtv/channelinfo.cpp

  Log Message:
  -----------
  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




More information about the mythtv-commits mailing list