mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +00:00
Merge branch 'master' into 2.3
Conflicts: lib/Cake/VERSION.txt
This commit is contained in:
commit
8b0a7ee13d
6 changed files with 18 additions and 8 deletions
|
@ -2256,6 +2256,12 @@ class MysqlTest extends CakeTestCase {
|
|||
$expected = " WHERE `HardCandy`.`name` LIKE 'to be or%' AND `Candy`.`name` LIKE '%not to be%'";
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
$result = $this->Dbo->conditions(array(
|
||||
"Person.name || ' ' || Person.surname ILIKE" => '%mark%'
|
||||
));
|
||||
$expected = " WHERE `Person`.`name` || ' ' || `Person`.`surname` ILIKE '%mark%'";
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
$result = $this->Dbo->conditions(array('score BETWEEN ? AND ?' => array(90.1, 95.7)));
|
||||
$expected = " WHERE `score` BETWEEN 90.1 AND 95.7";
|
||||
$this->assertEquals($expected, $result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue