-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Sql-query breaks on 2.4.0 compare to 2.3.7 #7407
Comments
Unrelated to #7400. I'll see if I can hunt this down. |
I think it from https://github.com/zendframework/zf2/blob/master/library/Zend/Db/Sql/Expression.php#L136 on code : $expression = str_replace('%', '%%', $this->expression); |
@samsonasik this line exists in 2.3.7 too |
I created a unittest for this and checked Before the introduction of that line the test passes, after the introduction of that line the test fails. /**
* @group 7407
*/
public function testGetExpressionDatePreservesPercentageSign()
{
$expressionString = 'FROM_UNIXTIME(date, "%Y-%m")';
$expression = new Expression($expressionString);
$this->assertSame($expressionString, $expression->getExpression());
} Edit: Edit 2: |
Found the source of the problem. The actual problem was caused by a refactoring of |
In 2.3.7 this code echoed:
and everything was fine, but in 2.4.0:
And I have to rollback to 2.3.7 because of this. May be it related to #7400.
The text was updated successfully, but these errors were encountered: