mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Fixing database to use prepareWhere instead which is renamed
This commit is contained in:
parent
cb01716d39
commit
a872e30256
@ -1251,8 +1251,8 @@ class MSSQLDatabase extends SS_Database {
|
|||||||
|
|
||||||
// method_exists is done here for legacy reasons, so we can use this on SS 2.4 and 3.0
|
// method_exists is done here for legacy reasons, so we can use this on SS 2.4 and 3.0
|
||||||
if($sqlQuery->where) {
|
if($sqlQuery->where) {
|
||||||
if(method_exists($sqlQuery, 'prepareSelect')) {
|
if(method_exists($sqlQuery, 'prepareWhere')) {
|
||||||
$text .= ' WHERE (' . $sqlQuery->prepareSelect() . ')';
|
$text .= ' WHERE (' . $sqlQuery->prepareWhere() . ')';
|
||||||
} else {
|
} else {
|
||||||
$text .= ' WHERE (' . $sqlQuery->getFilter() . ')';
|
$text .= ' WHERE (' . $sqlQuery->getFilter() . ')';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user