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
02ed1d6d
Commit
02ed1d6d
authored
Sep 30, 2010
by
Lukas Kahwe Smith
Committed by
Juozas Kaziukenas
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSSQL does support savepoints
parent
2636656b
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 @
02ed1d6d
...
...
@@ -61,12 +61,11 @@ class MsSqlPlatform extends AbstractPlatform
}
/**
* Whether the platform supports
savepoints. MsSql does not
.
* Whether the platform supports
releasing savepoints
.
*
* @return boolean
* @override
*/
public
function
supportsSavepoints
()
public
function
supports
Release
Savepoints
()
{
return
false
;
}
...
...
@@ -686,4 +685,37 @@ DROP DATABASE ' . $name . ';';
'image'
=>
'text'
,
);
}
/**
* 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