diff options
author | DaveTBlake <oak99sky@yahoo.co.uk> | 2020-06-20 13:31:25 +0100 |
---|---|---|
committer | DaveTBlake <oak99sky@yahoo.co.uk> | 2020-06-20 13:31:25 +0100 |
commit | 075fe4e41c9a1e3c7babd59276cc666001b4b209 (patch) | |
tree | 92427c6e0ce22d7daf06231d6f23fdabed768dcd | |
parent | 74fddcbe91425b0f15863924f2dc02ad5711dd18 (diff) |
Fix MySQL syntax for trigger tgrInsertGenre
-rw-r--r-- | xbmc/music/MusicDatabase.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xbmc/music/MusicDatabase.cpp b/xbmc/music/MusicDatabase.cpp index fdeba2915f..ac8266c305 100644 --- a/xbmc/music/MusicDatabase.cpp +++ b/xbmc/music/MusicDatabase.cpp @@ -370,9 +370,8 @@ void CMusicDatabase::CreateAnalytics() m_pDS->exec("CREATE TRIGGER tgrUpdateArtist BEFORE UPDATE ON artist FOR EACH ROW" " SET NEW.dateModified = now()"); - m_pDS->exec("CREATE TRIGGER tgrInsertGenre AFTER INSERT ON genre" - " BEGIN UPDATE versiontagscan SET genresupdated = now();" - " END"); + m_pDS->exec("CREATE TRIGGER tgrInsertGenre AFTER INSERT ON genre FOR EACH ROW" + " UPDATE versiontagscan SET genresupdated = now()"); } // Triggers to maintain recent changes to album and song artist links in removed_link table |