[Bast-commits] r6965 -
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Fri Jul 3 11:37:06 GMT 2009
Author: ribasushi
Date: 2009-07-03 11:37:06 +0000 (Fri, 03 Jul 2009)
New Revision: 6965
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm
Log:
Capitalize mysql commands
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm 2009-07-03 11:19:27 UTC (rev 6964)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm 2009-07-03 11:37:06 UTC (rev 6965)
@@ -10,14 +10,14 @@
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|);
}
More information about the Bast-commits
mailing list