364 Commits

Author SHA1 Message Date
Wayne Merricks
69ea83d570 lib/rdsound_panel.cpp MySQL v5.7+ Date Changes
Usual checks.  Line 1493 and 1537 is not required as they are derived from
current system datetime as per lines 1466 and 1526 respectively.
2016-06-04 20:04:09 +01:00
Wayne Merricks
1e37f6bbdc lib/rdcartslot.cpp Added MySQL v5.7+ changes
Added usual checks.  Line 690 EVENT_DATETIME is not required as this is derived
from current system datetime as per line 665.
2016-06-04 20:03:57 +01:00
Wayne Merricks
4523e8e90f lib/rdsvc.cpp Added null checks to purge_date as per MySQL v5.7+ changes
Changed purge_date to a QString so that it can be checked with the normal
RDCheckDateTime function.  Also means the QString.isEmpty check is a straight
forward QDate.isValid and in that case we can use QDate.toString rather than
formatting via RDCheckDateTime (and incurring another QDate.isValid check).
2016-06-04 20:03:39 +01:00
Wayne Merricks
e1c9caa987 lib/rdreport.cpp Reverted date checks on SELECT statements
Checking is probably not needed and even if it did find an invalid date it would
likely not return valid SQL e.g this is just one paraphrased example from the
code:

SELECT x FROM y WHERE EVENT_DATETIME<="NULL 00:00:00"

I've reverted back the two select changes for the daypart code and put a TODO
note there as a marker.
2016-06-04 20:03:24 +01:00
Wayne Merricks
1cf11af447 lib/rdfeed.cpp MySQL v5.7+ date/time null changes
Fixed in setX rather than Row as these are converted to QString before the DB
2016-06-04 20:03:10 +01:00
Wayne Merricks
e98a915f90 lib/rdlog.cpp MySQL v5.7+ date/time null changes
Fixed in SetRow for QDate/QTime and QDateTime
2016-06-04 20:03:03 +01:00
Wayne Merricks
c2560a671b lib/rdevent_line.cpp MySQL v5.7+ date/time null changes
Time is based on event_start_time however can't guarantee validity hence
RDCheckDateTime again.
2016-06-04 20:02:47 +01:00
Wayne Merricks
ace1a01225 lib/rdpodcast.cpp MySQL v5.7+ changes for date nulls
This doesn't use a dedicated setRow, instead it converts to QString and then
tries to insert the dates instead.

Amended setOrigin and setEffectiveDateTime to use RDCheckDateTime
2016-06-04 20:02:25 +01:00
Wayne Merricks
e2eb07c615 Added date/time checks for MySQL v5.7+ date/time nulls
Shouldn't be necessary in the daypart SQL but can't verify validity so added
checks there too.
2016-06-03 23:50:29 +01:00
Wayne Merricks
d222ed9ca0 Added QDate/Time variant is valid checks for SQL use
With MySQL v5.7+ you have to specifically set either a valid date or NULL
otherwise you get SQL errors.  In previous versions setting a date to "" implied
NULL, this is no longer the case which causes nice SQL errors all over the
place.

This new RDCheckDateTime is an overloaded function that calls the respective
isValid method of QDate/Time/DateTime and either returns the requested formatted
string or returns NULL as a string.

This can then be used as part of an INSERT/UPDATE without breaking the stricter
NULL interpretation of MySQL v5.7+.
2016-06-03 23:45:31 +01:00
Fred Gleason
04b4db9157 2016-06-01 Fred Gleason <fredg@paravelsystems.com>
* Changed the default value of the 'CART_NUMBER' field in '_LOG'
	tables from NULL to 0.
	* Incremented the database version to 258.
2016-06-01 12:06:36 -04:00
Fred Gleason
ebb2d90045 2016-06-01 Fred Gleason <fredg@paravelsystems.com>
* Modified the Edit Log screen in 'rdlogedit/edit_log.cpp' to
	display the link Start Time and Length for Traffic and Music links
	in the 'EXT DATA' column.
	* Removed display of the link Length for Traffic and Music links
	from the LENGTH column in 'rdlogedit/edit_log.cpp'.
2016-06-01 11:27:26 -04:00
Fred Gleason
da0ad47ffb 2016-05-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDAudioExport::cartNumber()', 'RDAudioExport::cutNumber()'
	and 'RDAudioExport::settings()' meethods in 'lib/rdaudioexport.cpp'
	and 'lib/rdaudioexport.h'.
	* Added expanded error logging in 'utils/rdexport/rdexport.cpp'.
2016-05-26 08:25:49 -04:00
Fred Gleason
f2d831f86c 2016-05-26 Fred Gleason <fredg@paravelsystems.com>
* Documented the '--escape-string' switch in
	'docs/docbook/rdexport.xml'.
2016-05-26 08:08:00 -04:00
Fred Gleason
81a60f85d6 2016-05-26 Fred Gleason <fredg@paravelsystems.com>
* Documented the '--allow-clobber' switch in
	'docs/docbook/rdexport.xml'.
	* Documented the '--continue-after-error' switch in
	'docs/docbook/rdexport.xml'.
2016-05-26 07:18:12 -04:00
Fred Gleason
044ed9a502 Corrected ChangeLog 2016-05-26 07:13:43 -04:00
Fred Gleason
be8c76f1f2 2016-05-25 Fred Gleason <fredg@paravelsystems.com>
Added a '--continue-after-error' parameter to rdexport(1).
	Added a '--allow-clobber' parameter to rdexport(1).
2016-05-25 19:35:20 -04:00
Fred Gleason
ef27640396 2016-05-25 Fred Gleason <fredg@paravelsystems.com>
Added a '--escape-string=' parameters to rdexport(1).
2016-05-25 18:49:31 -04:00
Fred Gleason
c952aa57b5 2016-05-25 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 2.13.0int00.
2016-05-25 11:08:33 -04:00
Fred Gleason
cdf22c0451 2016-05-25 Fred Gleason <fredg@paravelsystems.com>
* Merged pull request from Wayne Merricks to fix DB creation on
	Ubuntu 16.04 [GitHub pull request #000130].
2016-05-25 10:37:36 -04:00
Fred Gleason
795eae0d3e 2016-05-25 Fred Gleason <fredg@paravelsystems.com>
* Merged pull request from Wayne Merricks to fix DB creation on
	Ubuntu 16.04 [GitHub pull request #000130].
2016-05-25 07:45:29 -04:00
Fred Gleason
c0999387eb Merge branch 'stable' of https://github.com/waynemerricks/rivendell into waynemerricks-stable 2016-05-25 07:23:39 -04:00
Wayne Merricks
5ff24a1374 Fix unable to create rduser in MySQL v5.7+
The original insert into user's method of creating rduser is not compatible with MySQL v5.7+.

This moves to a standard create user statement.  Also moved to grant statements rather than
inserting directly into the db table to prevent possible changes to that causing issues in the
future.
2016-05-24 20:24:31 +01:00
Wayne Merricks
57aa913e6f Fix rdairplay password and rdpanel segfault
Removes the INSTANCE column from RDAIRPLAY and RDPANEL tables.  This was removed in schema 219 but persists if you create a db from scratch.

This makes rdairplay prompt for a password when exiting and seg faults rdpanel if not removed due to an attempt to insert a record into RDAIRPLAY/RDPANEL without setting a value for INSTANCE which is NOT NULL with no default.
2016-05-24 20:20:55 +01:00
Fred Gleason
37163bfd51 2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Reverted GitHub pull request #000117.
2016-05-24 14:58:10 -04:00
Fred Gleason
72e55f4772 2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Merged fix for gcc 6.1.1 from Daniel KAmil Kozar [GitHub pull
	request #000126].
2016-05-24 13:28:38 -04:00
Fred Gleason
2e7d160ef8 Merge branch 'xavery-stable-gcc611-fix-compile' into stable 2016-05-24 13:26:26 -04:00
Fred Gleason
f35263d24c Merge branch 'stable-gcc611-fix-compile' of https://github.com/xavery/rivendell into xavery-stable-gcc611-fix-compile 2016-05-24 13:25:52 -04:00
Fred Gleason
698b475933 2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Removed all CVS tags.
	* Removed 'const char *name' parameter from all QObject contructors.
2016-05-24 13:13:26 -04:00
Daniel Kamil Kozar
9fbaf4bc16 fix compilation with gcc 6.1.1 2016-05-21 00:28:21 +02:00
Fred Gleason
db9da6dc62 2016-05-20 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'not null' attribute from the 'LOGS.LINK_DATETIME',
	'LOGS.START_DATE' and 'LOGS.END_DATE' fields in the database
	[GitHub issue #000121].
	* Incremented the database version to 257.
2016-05-20 16:45:56 -04:00
Fred Gleason
5d0ee9cd38 2016-05-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'rdadmin/createdb.cpp' that caused creation
	of a new DB to fail.
2016-05-20 15:55:26 -04:00
Fred Gleason
d9023b1430 2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added support for the RDCatchd 'DE' command in
	'rdcatchd/rdcatchd.cpp', 'rdcatchd/rdcatchd.h',
	'rdcatchd/event_player.cpp', 'rdcatchd/event_player.h' and
	'rdcatchd/local_macros.cpp'.
	* Added a deck event indicator to RDCatch's deck monitor in
	'rdcatch/deckmon.cpp' and 'rdcatch/deckmon.h'.
2016-05-18 17:03:25 -04:00
Fred Gleason
5190a8282b 2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* 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'.
2016-05-18 13:44:47 -04:00
Fred Gleason
3b766a5e7d 2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* 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'.
2016-05-18 13:43:21 -04:00
Fred Gleason
92623fab37 2016-05-13 Fred Gleason <fredg@paravelsystems.com>
* Added the '-f' switch to the invocation of gtk-update-icon-cache(8)
	in 'rivendell.spec.in'.
2016-05-13 17:18:04 -04:00
Fred Gleason
b272700f84 2016-05-13 Fred Gleason <fredg@paravelsystems.com>
* Removed a superfluous dependency on libXi in 'acinclude.m4'.
2016-05-13 16:53:01 -04:00
Fred Gleason
df9ac7cff1 2016-05-10 Fred Gleason <fredg@paravelsystems.com>
* Updated 'NEWS'
	* Incremented the package version to 2.13.0.
v2.13.0
2016-05-10 15:23:12 -04:00
Fred Gleason
93805e4101 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 2.12.0int01.
2016-04-29 18:16:36 -04:00
Fred Gleason
7892f4e8dc 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/lib.pro' that broke the build on Windows.
2016-04-29 18:13:02 -04:00
Fred Gleason
b7e0c2613b 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs in 'docs/docbook/Makefile.am' and 'rivendell.spec.in'
	that broke the 'make rpm' target.
2016-04-29 17:50:59 -04:00
Fred Gleason
e5b25668c0 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Added a pointer offset argument to the 'RDWaveFile::createWave()'
	method in 'lib/rdwavefile.cpp' and 'lib/rdwavefile.h'.
2016-04-29 17:15:20 -04:00
Fred Gleason
f8e6fc0629 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'rdlibrary/audio_cart.cpp' that caused
	marker data to be deleted when exporting a cut.
2016-04-29 14:26:21 -04:00
Fred Gleason
09aa449509 2016-04-29 Fred Gleason <fredg@paravelsystems.com>
* Implemented export for marker data in WAV files in
	'lib/rdwavefile.cpp' and 'lib/rdwavefile.h'.
2016-04-29 13:29:28 -04:00
Fred Gleason
fa988211a8 2016-04-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdcut.cpp' that caused the cut 'Description'
	field to be applied as a cut Title.
2016-04-27 20:00:13 -04:00
Fred Gleason
9d9f5f33cd Fixed typo in ChangeLog 2016-04-27 19:58:55 -04:00
Fred Gleason
606639bde0 Fixed typo in ChangeLog 2016-04-27 19:58:25 -04:00
Fred Gleason
687a8c6fc8 2016-04-27 Brian McGlynn <brian.mcglynn@geneseemedia.net>
* Added a 'bitRate' field in the return for the AudioInfo web method.
	* Added an rdexport(1) utility in 'utils/rdexport/'.
2016-04-27 19:46:39 -04:00
Fred Gleason
20101e168c Merge branch 'bpm1992-cart_sched1' into stable 2016-04-26 17:00:29 -04:00
Fred Gleason
7f441e628b resolved conflict in ChangeLog 2016-04-26 17:00:11 -04:00