Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / SQLAHacks / MySQL.pm
index 9b4d0be..d58e420 100644 (file)
@@ -1,24 +1,9 @@
 package # Hide from PAUSE
   DBIx::Class::SQLAHacks::MySQL;
 
-use base qw( DBIx::Class::SQLAHacks );
-use Carp::Clan qw/^DBIx::Class|^SQL::Abstract/;
+use warnings;
+use strict;
 
-#
-# MySQL does not understand the standard INSERT INTO $table DEFAULT VALUES
-# Adjust SQL here instead
-#
-sub insert {
-  my $self = shift;
-
-  my $table = $_[0];
-  $table = $self->_quote($table) unless ref($table);
-
-  if (! $_[1] or (ref $_[1] eq 'HASH' and !keys %{$_[1]} ) ) {
-    return "INSERT INTO ${table} () VALUES ()"
-  }
-
-  return $self->SUPER::insert (@_);
-}
+use base qw( DBIx::Class::SQLMaker::MySQL );
 
 1;