1 package # Hide from PAUSE
2 DBIx::Class::SQLAHacks::MySQL;
4 use base qw( DBIx::Class::SQLAHacks );
5 use Carp::Clan qw/^DBIx::Class|^SQL::Abstract/;
8 # MySQL does not understand the standard INSERT INTO $table DEFAULT VALUES
9 # Adjust SQL here instead
15 $table = $self->_quote($table);
17 if (! $_[1] or (ref $_[1] eq 'HASH' and !keys %{$_[1]} ) ) {
18 return "INSERT INTO ${table} () VALUES ()"
21 return $self->SUPER::insert (@_);
24 # Allow STRAIGHT_JOIN's
25 sub _generate_join_clause {
26 my ($self, $join_type) = @_;
28 if( $join_type && $join_type =~ /^STRAIGHT\z/i ) {
29 return ' STRAIGHT_JOIN '
32 return $self->SUPER::_generate_join_clause( $join_type );