mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
adding ILIKE to AdapterSQLSrv
This commit is contained in:
parent
1771bfc2f2
commit
ca35d86c5a
2 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ namespace OC\DB;
|
|||
|
||||
class AdapterSQLSrv extends Adapter {
|
||||
public function fixupStatement($statement) {
|
||||
$statement = str_replace(' ILIKE ', ' COLLATE Latin1_General_CI_AS LIKE ', $statement);
|
||||
$statement = preg_replace( "/\`(.*?)`/", "[$1]", $statement );
|
||||
$statement = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $statement );
|
||||
$statement = str_replace( 'LENGTH(', 'LEN(', $statement );
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@ class Test_DB extends PHPUnit_Framework_TestCase {
|
|||
*/
|
||||
private $table3;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $table4;
|
||||
|
||||
public function setUp() {
|
||||
$dbfile = OC::$SERVERROOT.'/tests/data/db_structure.xml';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue