X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2Fmysql.pm;h=cd4b6a08eee674d36ef6e7be82b17179f161a858;hb=8c4b6c50e873a2b5993d1bfe0f40763d994b7da4;hp=aa1530b4fb98eebada6a86512bf99a757ed7cd45;hpb=010ab43a1833b20baa9d286b50654198078fbd75;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/mysql.pm b/lib/DBIx/Class/Storage/DBI/mysql.pm index aa1530b..cd4b6a0 100644 --- a/lib/DBIx/Class/Storage/DBI/mysql.pm +++ b/lib/DBIx/Class/Storage/DBI/mysql.pm @@ -20,12 +20,6 @@ sub with_deferred_fk_checks { $self->_do_query('SET FOREIGN_KEY_CHECKS = 1'); } -sub connect_call_set_ansi_mode { - my $self = shift; - $self->_do_query(q|SET SQL_MODE = 'ANSI,TRADITIONAL'|); - $self->_do_query(q|SET SQL_AUTO_IS_NULL = 0|); -} - sub _dbh_last_insert_id { my ($self, $dbh, $source, $col) = @_; $dbh->{mysql_insertid}; @@ -72,21 +66,22 @@ 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 = MyDb::Schema->connect( $dsn, $user, $pass ); =head1 DESCRIPTION -This class implements autoincrements for MySQL. +This class implements MySQL specific bits of L. =head1 AUTHORS -Matt S. Trout +See L =head1 LICENSE