Skip to content

Commit

Permalink
Merge pull request #561 from deeky666/fix-sqlanywhere-for-update-sql
Browse files Browse the repository at this point in the history
Fix FOR UPDATE SQL on SQL Anywhere
  • Loading branch information
Ocramius committed May 16, 2014
2 parents d12eb78 + 3d360d1 commit 6a120fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
Expand Up @@ -665,7 +665,7 @@ public function getForeignKeyReferentialActionSQL($action)
*/
public function getForUpdateSQL()
{
return 'FOR UPDATE BY LOCK';
return '';
}

/**
Expand Down
Expand Up @@ -552,7 +552,7 @@ public function testGeneratesSQLSnippets()
$this->assertEquals("DATEADD(YEAR, -1 * 10, '1987/05/02')", $this->_platform->getDateSubYearsExpression("'1987/05/02'", 10));
$this->assertEquals("Y-m-d H:i:s.u", $this->_platform->getDateTimeFormatString());
$this->assertEquals("H:i:s.u", $this->_platform->getTimeFormatString());
$this->assertEquals('FOR UPDATE BY LOCK', $this->_platform->getForUpdateSQL());
$this->assertEquals('', $this->_platform->getForUpdateSQL());
$this->assertEquals('NEWID()', $this->_platform->getGuidExpression());
$this->assertEquals('LOCATE(string_column, substring_column)', $this->_platform->getLocateExpression('string_column', 'substring_column'));
$this->assertEquals('LOCATE(string_column, substring_column, 1)', $this->_platform->getLocateExpression('string_column', 'substring_column', 1));
Expand Down

0 comments on commit 6a120fb

Please sign in to comment.