diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-14 16:14:16 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-10-14 16:14:16 +0000 |
| commit | 86846c2fe694f09b8d79d330968283c3a5cdf4d5 (patch) | |
| tree | 408671828fc5a96317f492fdaaaa9b5010fb98a8 | |
| parent | a2807ff1baf22daea2e1803afc1e867fe59524bf (diff) | |
| download | pica-pica-86846c2fe694f09b8d79d330968283c3a5cdf4d5.tar.gz pica-pica-86846c2fe694f09b8d79d330968283c3a5cdf4d5.zip | |
fixed database update query
git-svn-id: svn://localhost/project_picapica/trunk@285 fb96df88-216d-11de-830c-f3023f12d8ac
| -rw-r--r-- | pica-client/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pica-client/main.cpp b/pica-client/main.cpp index e58afcf..cf51541 100644 --- a/pica-client/main.cpp +++ b/pica-client/main.cpp @@ -347,7 +347,7 @@ static bool update_database() goto showerror; query.exec("insert into history select h.id, c.new_id, a.new_id, h.timestamp, h.is_me, h.is_delivered, h.message \ - from history_old_schemav1 as h, accounts_old_schemav1 as a, contacts_old_schemav1 as c on h.contact_id = c.id and h.account_id = a.id and a.id = c.account_id order by h.id"); + from history_old_schemav1 as h, accounts_old_schemav1 as a, contacts_old_schemav1 as c on h.contact_id = c.id and h.account_id = a.id and a.id = c.account_id order by h.id where c.new_id is not null and a.new_id is not null"); if (query.lastError().isValid()) goto showerror; |
