CategoryDaoSqlite: deleteCategory(): Fix broken query
Этот коммит содержится в:
родитель
420e541e75
Коммит
eb292a7d79
@ -64,9 +64,9 @@ void CategoryDaoSqlite::deleteCategory(std::string name)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
*db << "BEGIN";
|
*db << "BEGIN;";
|
||||||
*db << "DELETE FROM categorymember WHERE catid = (SELECT id FROM category WHERE name = ?)" << name;
|
*db << "DELETE FROM categorymember WHERE category = (SELECT id FROM category WHERE name = ?);" << name;
|
||||||
*db << "DELETE FROM category WHERE name = ?" << name;
|
*db << "DELETE FROM category WHERE name = ?;" << name;
|
||||||
*db << "COMMIT;";
|
*db << "COMMIT;";
|
||||||
}
|
}
|
||||||
catch(sqlite::sqlite_exception &e)
|
catch(sqlite::sqlite_exception &e)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user