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
* Added an entry for the Broadcast Tools SRC-16 in
'docs/SWITCHERS.txt'.
* Added a 'CUT_EVENTS' table to the database.
* Added a 'DECK_EVENTS' table to the database.
* Incremented the database version to 256.
* Implemented a 'Cut Event' ['CE'] RML.
* Added a 'Event Carts' section to the Edit Deck dialog in
'rdadmin/edit_deck.cpp' and 'rdadmin/edit_deck.h'.
* Added a 'CART.USE_WEIGHTING' field to the database.
* Added a 'CUTS.PLAY_ORDER' field to the database.
* Incremented the database version to 254.
* Added a 'Schedule Cuts By' control to the Edit Cart dialog in
'rdlibrary/edit_cart.cpp' and 'rdlibrary/edit_cart.h'.
* Added 'RDCart::useWeighting()' and 'RDCart::setUseWeighting()'
methods in 'lib/rdcart.cpp' and 'lib/rdcart.h'.
* Added 'RDCut::playOrder()' and 'RDCut::setPlayOrder()' methods
in 'lib/rdcut.cpp' and 'lib/rdcut.h'.
* Fixed a bug in 'utils/rdimport/rdimport.cpp' that failed to
apply automatic segues correctly when the audio store was not
locally accessible.
* Fixed a bug in 'utils/rdimport/rdimport.cpp' that caused the
value of the '--segue-level' options to be wrong by a factor of
100.
* Refactored the 'RDCut::autoSegue()' method to fetch trim data
via 'RDTrimAudio'.
* Added language in the rdimport(1) man page to resolve ambiguity
regarding how the --segue-level location is dteremined when
normalization is specified.
* Fixed a bug in 'lib/rdcut.cpp' that caused the 'Title' value
to be applied to the 'Description' field in the 'RDCut::setMetadata()'
method.
* Added 'docs/metadata_wildcards.txt'.
* Implemented support for the '%i' ['Cut Description'] wildcard in
rdimport(1)'s '--metadata-pattern' switch in
'utils/rdimport/rdimport.cpp' [Github Issue #6].
* Implemented support for the '%o' ['Outcue'] wildcard in
rdimport(1)'s '--metadata-pattern' switch in
'utils/rdimport/rdimport.cpp'.
* Implemented support for the '%y' ['Release Year'] wildcard in
rdimport(1)'s '--metadata-pattern' switch in
'utils/rdimport/rdimport.cpp'.