diff --git a/src/db-sql-sqlite2.c b/src/db-sql-sqlite2.c index f9449e6f..d79abcad 100644 --- a/src/db-sql-sqlite2.c +++ b/src/db-sql-sqlite2.c @@ -347,7 +347,7 @@ int db_sqlite2_event(int event_type) { db_sqlite2_exec(NULL,E_DBG,"drop table songs"); // db_sqlite2_exec(NULL,E_DBG,"drop table playlists"); - db_sqlite2_exec(NULL,E_DBG,"delete from playlists where not type=1"); + db_sqlite2_exec(NULL,E_DBG,"delete from playlists where not type=1 and not type=0"); db_sqlite2_exec(NULL,E_DBG,"drop table playlistitems"); db_sqlite2_exec(NULL,E_DBG,"drop table config"); diff --git a/src/db-sql-sqlite3.c b/src/db-sql-sqlite3.c index aa99074e..e1cd5efd 100644 --- a/src/db-sql-sqlite3.c +++ b/src/db-sql-sqlite3.c @@ -379,7 +379,7 @@ int db_sqlite3_event(int event_type) { db_sqlite3_exec(NULL,E_DBG,"drop table songs"); // db_sqlite3_exec(NULL,E_DBG,"drop table playlists"); - db_sqlite3_exec(NULL,E_DBG,"delete from playlists where not type=1"); + db_sqlite3_exec(NULL,E_DBG,"delete from playlists where not type=1 and not type=0"); db_sqlite3_exec(NULL,E_DBG,"drop table playlistitems"); db_sqlite3_exec(NULL,E_DBG,"drop table config");