From: Peter Rabbitson Date: Sat, 4 Jul 2009 09:37:25 +0000 (+0000) Subject: Add set_ansi_mode POD X-Git-Tag: v0.08108~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9d438ff1fe53f1a38a1210441d676f3160d961d;p=dbsrgits%2FDBIx-Class.git Add set_ansi_mode POD --- diff --git a/lib/DBIx/Class/Storage/DBI/mysql.pm b/lib/DBIx/Class/Storage/DBI/mysql.pm index aa1530b..2e4a69d 100644 --- a/lib/DBIx/Class/Storage/DBI/mysql.pm +++ b/lib/DBIx/Class/Storage/DBI/mysql.pm @@ -72,21 +72,25 @@ sub _subq_update_delete { =head1 NAME -DBIx::Class::Storage::DBI::mysql - Automatic primary key class for MySQL +DBIx::Class::Storage::DBI::mysql - Storage::DBI class implementing MySQL specifics =head1 SYNOPSIS - # In your table classes - __PACKAGE__->load_components(qw/PK::Auto Core/); - __PACKAGE__->set_primary_key('id'); +Storage::DBI autodetects the underlying MySQL database, and re-blesses the +C<$storage> object into this class. + + my $schema = MyDatbase->connect( $dsn, $user, $pass, { set_ansi_mode => 1 } ); =head1 DESCRIPTION -This class implements autoincrements for MySQL. +This class implements MySQL specific bits of L. + +It also provides a one-stop macro that sets session variables such that +MySQL behaves more predictably as far as the SQL standard is concerned. =head1 AUTHORS -Matt S. Trout +See L =head1 LICENSE