From: Peter Rabbitson Date: Fri, 3 Jul 2009 11:37:06 +0000 (+0000) Subject: Capitalize mysql commands X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cf7285e8d248e01718a3d691208a469c5dee1d1;p=dbsrgits%2FDBIx-Class-Historic.git Capitalize mysql commands --- diff --git a/lib/DBIx/Class/Storage/DBI/mysql.pm b/lib/DBIx/Class/Storage/DBI/mysql.pm index 7c6e7ee..3e54a02 100644 --- a/lib/DBIx/Class/Storage/DBI/mysql.pm +++ b/lib/DBIx/Class/Storage/DBI/mysql.pm @@ -10,14 +10,14 @@ __PACKAGE__->sql_maker_class('DBIx::Class::SQLAHacks::MySQL'); sub with_deferred_fk_checks { my ($self, $sub) = @_; - $self->_do_query('SET foreign_key_checks=0'); + $self->_do_query('SET FOREIGN_KEY_CHECKS = 0'); $sub->(); - $self->_do_query('SET foreign_key_checks=1'); + $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_MODE = 'ANSI,TRADITIONAL'|); $self->_do_query(q|SET SQL_AUTO_IS_NULL = 0|); }