From 03d46951b2265ea53269810c6c7e421441a2be09 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 1 Jul 2003 01:56:52 +0000 Subject: [PATCH] Note that there are still some queries in CVS which cause SQLite to have a minor fit, these are "generally" fixed locally on my machine ... will commit when other bits and pieces are "done" ... hopefully ... perhaps ... good grief, it's nearly 3am again ... 10 years ago I could do these late nights/early mornings, bah git-svn-id: file:///svn/phpbb/trunk@4189 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/sqlite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php index 621fe8e422..d7ba0e1e7d 100644 --- a/phpBB/includes/db/sqlite.php +++ b/phpBB/includes/db/sqlite.php @@ -102,7 +102,7 @@ class sql_db { global $cache; - $query = preg_replace('#FROM \((.*?)\)[\n\t ]+WHERE #s', 'FROM \1 WHERE ', $query); + $query = preg_replace('#FROM \((.*?)\)(,|[\n\t ]+?WHERE) #s', 'FROM \1\2 ', $query); if (!$expire_time || !$cache->sql_load($query, $expire_time)) {