Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandrashin Denis <mail@lintest.ru>2013-01-15 21:20:26 +0400
committerKandrashin Denis <mail@lintest.ru>2013-01-15 21:20:26 +0400
commitca7bafd3f0963b62485e94767db98afe39aaa381 (patch)
tree61a41bbf7259ade04dd0d5e7c26bb50c64ba2771 /sources
parent8a5fb8c7f482411e44ec25018a1c99db68bd91a2 (diff)
Fix procedure: replace author
Diffstat (limited to 'sources')
-rw-r--r--sources/MyRuLib/dialogs/FbAuthorDlg.cpp2
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();