| DBIx-Connector documentation | Contained in the DBIx-Connector distribution. |
DBIx::Connector::Driver::MSSQL - Microsoft SQL Server-specific connection interface
This subclass of DBIx::Connector::Driver provides Microsoft SQL server-specific implementations of the following methods:
savepointreleaserollback_toThis module was written and is maintained by:
It is based on code written by:
Copyright (c) 2009-2010 David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| DBIx-Connector documentation | Contained in the DBIx-Connector distribution. |
package DBIx::Connector::Driver::MSSQL; use strict; use warnings; use base 'DBIx::Connector::Driver'; our $VERSION = '0.45'; sub savepoint { my ($self, $dbh, $name) = @_; $dbh->do("SAVE TRANSACTION $name"); } # MSSQL automatically releases a savepoint when you start another one with the # same name. sub release { 1 } sub rollback_to { my ($self, $dbh, $name) = @_; $dbh->do("ROLLBACK TRANSACTION $name"); } 1; __END__