xbmc/xbmc — pull request #949 by pieh (2012-05-09 19:51:14+00:00)
Title: fixed: preserve views when copying mysql db

To update db we first copy database and then perform necessary updates in UpdateOldVersion. Currently Sqlite will make full copy, but mysql will copy only tables without views. Lack of views on this stage cause errors with this https://github.com/xbmc/xbmc/commit/a42a8c1f8ddb6dbc2097b95160da6181b6f2887f (we use SELECT ... FROM episodeview which doesn't exist yet).

This patch add copying views to db copy method and solves that issue.