diff options
author | Kandrashin Denis <mail@lintest.ru> | 2013-01-15 21:20:26 +0400 |
---|---|---|
committer | Kandrashin Denis <mail@lintest.ru> | 2013-01-15 21:20:26 +0400 |
commit | ca7bafd3f0963b62485e94767db98afe39aaa381 (patch) | |
tree | 61a41bbf7259ade04dd0d5e7c26bb50c64ba2771 /sources | |
parent | 8a5fb8c7f482411e44ec25018a1c99db68bd91a2 (diff) |
Fix procedure: replace author
Diffstat (limited to 'sources')
-rw-r--r-- | sources/MyRuLib/dialogs/FbAuthorDlg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/MyRuLib/dialogs/FbAuthorDlg.cpp b/sources/MyRuLib/dialogs/FbAuthorDlg.cpp index 287902a0..4536572e 100644 --- a/sources/MyRuLib/dialogs/FbAuthorDlg.cpp +++ b/sources/MyRuLib/dialogs/FbAuthorDlg.cpp @@ -198,7 +198,7 @@ void FbAuthorModifyDlg::ReplaceAuthor(int old_id, int new_id) }
{
- wxString sql = wxT("DELETE FROM books WHERE id=?");
+ wxString sql = wxT("DELETE FROM books WHERE id_author=?");
wxSQLite3Statement stmt = m_database.PrepareStatement(sql);
stmt.Bind(1, old_id);
stmt.ExecuteUpdate();
|