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
d0b50c6e
Commit
d0b50c6e
authored
Sep 30, 2010
by
Lukas Kahwe Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSSQL does support savepoints
parent
3b79401b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
MsSqlPlatform.php
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
+35
-3
No files found.
lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
View file @
d0b50c6e
...
@@ -61,12 +61,11 @@ class MsSqlPlatform extends AbstractPlatform
...
@@ -61,12 +61,11 @@ class MsSqlPlatform extends AbstractPlatform
}
}
/**
/**
* Whether the platform supports
savepoints. MsSql does not
.
* Whether the platform supports
releasing savepoints
.
*
*
* @return boolean
* @return boolean
* @override
*/
*/
public
function
supportsSavepoints
()
public
function
supports
Release
Savepoints
()
{
{
return
false
;
return
false
;
}
}
...
@@ -666,4 +665,37 @@ DROP DATABASE ' . $name . ';';
...
@@ -666,4 +665,37 @@ DROP DATABASE ' . $name . ';';
{
{
}
}
/**
* Generate SQL to create a new savepoint
*
* @param string $savepoint
* @return string
*/
public
function
createSavePoint
(
$savepoint
)
{
return
'SAVE TRANSACTION '
.
$savepoint
;
}
/**
* Generate SQL to release a savepoint
*
* @param string $savepoint
* @return string
*/
public
function
releaseSavePoint
(
$savepoint
)
{
return
''
;
}
/**
* Generate SQL to rollback a savepoint
*
* @param string $savepoint
* @return string
*/
public
function
rollbackSavePoint
(
$savepoint
)
{
return
'ROLLBACK TRANSACTION '
.
$savepoint
;
}
}
}
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