Rechercher une page de manuel
DBIx::Class::Storage::DBI::ODBC::Microsoft_SQL_Server.3pm
Langue: en
Version: 2008-02-07 (ubuntu - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
DBIx::Class::Storage::ODBC::Microsoft_SQL_Server - Support specific to Microsoft SQL Server over ODBCDESCRIPTION
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
insert
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.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre