CategoryDaoSqlite: deleteCategory(): Fix broken query
このコミットが含まれているのは:
コミット
eb292a7d79
@ -64,9 +64,9 @@ void CategoryDaoSqlite::deleteCategory(std::string name)
|
||||
try
|
||||
{
|
||||
|
||||
*db << "BEGIN";
|
||||
*db << "DELETE FROM categorymember WHERE catid = (SELECT id FROM category WHERE name = ?)" << name;
|
||||
*db << "DELETE FROM category WHERE name = ?" << name;
|
||||
*db << "BEGIN;";
|
||||
*db << "DELETE FROM categorymember WHERE category = (SELECT id FROM category WHERE name = ?);" << name;
|
||||
*db << "DELETE FROM category WHERE name = ?;" << name;
|
||||
*db << "COMMIT;";
|
||||
}
|
||||
catch(sqlite::sqlite_exception &e)
|
||||
|
読み込み中…
新しいイシューから参照
ユーザーをブロックする