evolution-data-server r10134 - trunk/camel
- From: tobiasmue svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r10134 - trunk/camel
- Date: Wed, 4 Mar 2009 21:25:57 +0000 (UTC)
Author: tobiasmue
Date: Wed Mar 4 21:25:57 2009
New Revision: 10134
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10134&view=rev
Log:
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)
Modified:
trunk/camel/ChangeLog
trunk/camel/camel-db.c
Modified: trunk/camel/camel-db.c
==============================================================================
--- trunk/camel/camel-db.c (original)
+++ trunk/camel/camel-db.c Wed Mar 4 21:25:57 2009
@@ -1346,11 +1346,11 @@
/* NB: UGLIEST Hack. We can't modify the schema now. We are using dirty (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, strftime(\"%%s\", 'now'), strftime(\"%%s\", 'now') )",
+ 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, strftime(\"%%s\", 'now'), strftime(\"%%s\", 'now') )",
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]