| DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server - Support specific |
DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server - Support specific to Microsoft SQL Server over ODBC
This class implements support specific to Microsoft SQL Server over ODBC, including auto-increment primary keys and SQL::Abstract::Limit dialect. It is loaded automatically by by DBIx::Class::Storage::DBI::ODBC when it detects a MSSQL back-end.
Microsoft SQL Server supports three methods of retrieving the IDENTITY
value for inserted row: IDENT_CURRENT, @@IDENTITY, and SCOPE_IDENTITY().
SCOPE_IDENTITY is used here because it is the safest. However, it must
be called is the same execute statement, not just the same connection.
So, this implementation appends a SELECT SCOPE_IDENTITY() statement
onto each INSERT to accommodate that requirement.
Marc Mims <marc@questright.com>
You may distribute this code under the same terms as Perl itself.
| DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server - Support specific |