Matt S Trout > DBIx-Class-0.08100 > DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server

Download:
DBIx-Class-0.08100.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  16
Stalled  12
View/Report Bugs
Source   Latest Release: DBIx-Class-0.082700_05

NAME ^

DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server - Support specific to Microsoft SQL Server over ODBC

DESCRIPTION ^

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.

IMPLEMENTATION NOTES ^

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.

METHODS ^

last_insert_id

sqlt_type

build_datetime_parser

The resulting parser handles the MSSQL DATETIME type, but is almost certainly not sufficient for the other MSSQL 2008 date/time types.

AUTHORS ^

Marc Mims <marc@questright.com>

LICENSE ^

You may distribute this code under the same terms as Perl itself.

syntax highlighting: