From 577743fe5abd1a42e7d8ad69f839f5bfd91bd5c8 Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Fri, 28 May 2010 17:52:13 -0500
Subject: [PATCH] #690322: avoid non-standard sql function UNIX_TIMESTAMP

---
 xapian.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git xapian.module xapian.module
index 8d5ddb8..2891651 100644
--- xapian.module
+++ xapian.module
@@ -707,7 +707,7 @@ function _xapian_queue_index($node) {
   $xid = db_result(db_query('SELECT xid FROM {xapian_index_queue} WHERE nid = %d', $node->nid));
   // Only queue a node if it's not already queued.
   if (!$xid) {
-    db_query('INSERT INTO {xapian_index_queue} (nid, added) VALUES (%d, UNIX_TIMESTAMP())', $node->nid);
+    db_query('INSERT INTO {xapian_index_queue} (nid, added) VALUES (%d, %d)', $node->nid, time());
   }
 }
 
-- 
1.7.1

