From 9718b2aea2375209da9d59a37f225cbc3ac614e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 29 Aug 2014 14:27:22 +0200 Subject: [PATCH] Search.Database.MySQL: Don't used DELAYED queries. The DELAYED query modifier is: * Not supported with InnoDB tables. This causes failures with MySQL versions (eg 5.5) where InnoDB (and not MyISAM) is default. * Ignored in MySQL 5.6. * Deprecated in MySQL 5.6.6. Fixes [bug 7255]. --- lib/modules/Search.pmod/Database.pmod/MySQL.pike | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/Search.pmod/Database.pmod/MySQL.pike b/lib/modules/Search.pmod/Database.pmod/MySQL.pike index 38a4e9d1df..550fc5124d 100644 --- a/lib/modules/Search.pmod/Database.pmod/MySQL.pike +++ b/lib/modules/Search.pmod/Database.pmod/MySQL.pike @@ -299,7 +299,7 @@ void remove_document(string|Standards.URI uri, void|string language) return; db->query("delete from document where id in ("+a->id*","+")"); - db->query("insert delayed into deleted_document (doc_id) values "+ + db->query("insert into deleted_document (doc_id) values "+ "("+a->id*"),("+")"); } @@ -319,7 +319,7 @@ void remove_document_prefix(string|Standards.URI uri) #endif db->query("DELETE FROM document " " WHERE id IN (" + (ids * ",") + ")"); - db->query("INSERT DELAYED INTO deleted_document " + db->query("INSERT INTO deleted_document " "(doc_id) VALUES (" + (ids * "),(") + ")"); } @@ -661,7 +661,7 @@ void set_metadata(Standards.URI|string uri, void|string language, a[0], a[1]); }) * ", "; - db->query("replace delayed into metadata (doc_id, name, value) values "+s); + db->query("replace into metadata (doc_id, name, value) values "+s); } void set_lastmodified(Standards.URI|string uri, -- GitLab