Wayne Merricks
f1175cd2f2
Fixes for invalid NULL sql on date/times
...
Most files are simple swaps to get rid of extra " as a NULL return will give
invalid SQL if used as follows UPDATE x SET y="NULL";
See github issue 121 for more info.
Extra changes have been made to the following files:
* lib/rdcartslot.cpp
- Added a QDateTime variable to prevent EVENT_DATETIME becoming
"2016-06-09" "NULL" as it was checked separately for date and time
* lib/rdcut.cpp
- Reworked START_DATETIME and END_DATETIME to save the SQL ifs. I believe this
makes it easier to read and understand.
- The >QDate(1900,1,1) and < 8000 is probably not needed but I left it there
just in case.
* lib/rdescape_string.cpp
- Reworked to add extra " if the date is not NULL see issue 121
* lib/rdfeed.cpp && lib/rdpodcast.cpp
- Had to add a SetRow for QDateTime as with the string conversion the existing
SetRow would add an extra set of "
* lib/rdsound_panel.cpp && rdairplay/log_traffic.cpp
&& utils/rddgimport/rddgimport.cpp
- Added a QString to contain EVENT_DATETIME to prevent double checks of date
and time separately (similar to lib/rdcartslot.cpp)
* rdcatchd/rdcatchd.cpp
- Reverted the changes. The RML here is not touching the DB so is fine, plus
with the RDCheckDateTime changes you'd have extra " unless it was NULL
* tests/sas_switch_torture.cpp && sas_torture.cpp
- Included missing rdescape_string.h
2016-06-09 00:01:38 +01:00
..
2016-06-01 12:06:36 -04:00
2016-05-24 13:13:26 -04:00
2016-04-25 17:47:22 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2015-02-06 18:05:44 -05:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2014-08-12 15:13:02 -04:00
2016-05-24 13:13:26 -04:00
2014-08-12 15:13:02 -04:00
2016-04-29 18:13:02 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-04-25 17:47:22 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-26 08:25:49 -04:00
2016-05-26 08:25:49 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-03-24 13:53:39 -04:00
2016-03-24 13:53:39 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-01 12:06:36 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-06-03 23:45:31 +01:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2015-08-30 08:14:59 -04:00
2015-08-30 08:14:59 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-03-24 13:53:39 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-04-29 17:15:20 -04:00
2015-08-30 08:14:59 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-04-21 21:42:44 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-18 13:43:21 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2014-12-21 23:23:38 +00:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-03-24 13:53:39 -04:00
2016-03-24 13:53:39 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2015-08-30 07:49:44 -04:00
2015-08-30 07:49:44 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-06-09 00:01:38 +01:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-04-29 17:15:20 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-03-24 13:53:39 -04:00
2016-03-24 13:53:39 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-03-24 13:53:39 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00
2016-05-24 13:13:26 -04:00