From b2968dc888dbb6c03f2a492720c9456b271ca172 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Thu, 4 Feb 2010 05:13:11 +0000 Subject: [PATCH] MINOR: extended flexibility of the helper ordermorespecifically --- code/SQLite3Database.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/SQLite3Database.php b/code/SQLite3Database.php index c1d96dc..dd4e357 100644 --- a/code/SQLite3Database.php +++ b/code/SQLite3Database.php @@ -386,7 +386,6 @@ class SQLite3Database extends SS_Database { $oldCols = array(); foreach($oldFieldList as $name => $spec) { - aDebug($name == $fieldName ? $fieldSpec : $spec); $newColsSpec[] = "\"$name\" " . ($name == $fieldName ? $fieldSpec : $spec); } @@ -1050,7 +1049,7 @@ class SQLite3Database extends SS_Database { // find a match in the SELECT array and replace foreach($select as $s) { - if(preg_match('/"[a-z0-9_]+"\.' . $term . '/i', trim($s))) { + if(preg_match('/"[a-z0-9_]+"\.[\'"]?' . $term . '[\'"]?/i', trim($s))) { $terms[$i] = $s . ' ' . $direction; $altered = true; break;