Commit 6a120fb9 authored by Marco Pivetta's avatar Marco Pivetta

Merge pull request #561 from deeky666/fix-sqlanywhere-for-update-sql

Fix FOR UPDATE SQL on SQL Anywhere
parents d12eb786 3d360d14
......@@ -665,7 +665,7 @@ class SQLAnywherePlatform extends AbstractPlatform
*/
public function getForUpdateSQL()
{
return 'FOR UPDATE BY LOCK';
return '';
}
/**
......
......@@ -552,7 +552,7 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
$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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment