adding ILIKE to AdapterSQLSrv

This commit is contained in:
Thomas Müller 2014-09-16 15:44:21 +02:00
parent 1771bfc2f2
commit ca35d86c5a
2 changed files with 6 additions and 0 deletions

View file

@ -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 );

View file

@ -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';