mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
MINOR: extended flexibility of the helper ordermorespecifically
This commit is contained in:
parent
5e8234ba2d
commit
b2968dc888
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user