Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
6a120fb9
Commit
6a120fb9
authored
May 16, 2014
by
Marco Pivetta
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #561 from deeky666/fix-sqlanywhere-for-update-sql
Fix FOR UPDATE SQL on SQL Anywhere
parents
d12eb786
3d360d14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SQLAnywherePlatform.php
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
+1
-1
SQLAnywherePlatformTest.php
...Doctrine/Tests/DBAL/Platforms/SQLAnywherePlatformTest.php
+1
-1
No files found.
lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
View file @
6a120fb9
...
...
@@ -665,7 +665,7 @@ class SQLAnywherePlatform extends AbstractPlatform
*/
public
function
getForUpdateSQL
()
{
return
'
FOR UPDATE BY LOCK
'
;
return
''
;
}
/**
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLAnywherePlatformTest.php
View file @
6a120fb9
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment