diff options
author | Tobias Mueller <tobiasmue@svn.gnome.org> | 2009-03-04 21:25:51 +0000 |
---|---|---|
committer | Tobias Mueller <tobiasmue@src.gnome.org> | 2009-03-04 21:25:51 +0000 |
commit | d04f72095334b321ffc1b8d6dcf978882671568b (patch) | |
tree | d319b513215b293b7061a01f495170d8e4c6e344 | |
parent | 77371827fc366ca408df2d46180309629a948fba (diff) | |
download | evolution-data-server-d04f72095334b321ffc1b8d6dcf978882671568b.tar.gz |
Cast a time_t to a long long and change SQL statement accordingly to
2009-03-04 Tobias Mueller <tobiasmue@svn.gnome.org>
* camel/camel-db.c (write_mir):
Cast a time_t to a long long and change SQL statement accordingly to
support systems with a 64bit width time_t.
** Fixes bug 572179 (Patch by Matthias Drochner)
svn path=/branches/gnome-2-24/; revision=10133
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-db.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 786739449..a88a71e7e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2009-03-04 Tobias Mueller <tobiasmue@svn.gnome.org> + + * camel/camel-db.c (write_mir): + Cast a time_t to a long long and change SQL statement accordingly to + support systems with a 64bit width time_t. + ** Fixes bug 572179 (Patch by Matthias Drochner) + 2009-02-19 Sankar P <psankar@novell.com> ** Fix for bug bnc #477535 diff --git a/camel/camel-db.c b/camel/camel-db.c index 31069030d..b67621d63 100644 --- a/camel/camel-db.c +++ b/camel/camel-db.c @@ -1213,11 +1213,11 @@ write_mir (CamelDB *cdb, const char *folder_name, CamelMIRecord *record, CamelEx /* NB: UGLIEST Hack. We can't modify the schema now. We are using msg_security (an unsed one to notify of FLAGGED/Dirty infos */ - ins_query = sqlite3_mprintf ("INSERT OR REPLACE INTO %Q VALUES (%Q, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %ld, %ld, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q )", + ins_query = sqlite3_mprintf ("INSERT OR REPLACE INTO %Q VALUES (%Q, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %lld, %lld, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q, %Q )", folder_name, record->uid, record->flags, record->msg_type, record->read, record->deleted, record->replied, record->important, record->junk, record->attachment, record->dirty, - record->size, record->dsent, record->dreceived, + record->size, (long long)record->dsent, (long long)record->dreceived, record->subject, record->from, record->to, record->cc, record->mlist, record->followup_flag, record->followup_completed_on, record->followup_due_by, |