1 package # Hide from PAUSE
2 DBIx::Class::SQLMaker::MySQL;
4 use base qw( DBIx::Class::SQLMaker );
6 sub _build_base_renderer_class {
7 Module::Runtime::use_module('Data::Query::Renderer::SQL::MySQL');
10 # Allow STRAIGHT_JOIN's
11 sub _generate_join_clause {
12 my ($self, $join_type) = @_;
14 if( $join_type && $join_type =~ /^STRAIGHT\z/i ) {
15 return ' STRAIGHT_JOIN '
18 return $self->next::method($join_type);
23 update => 'FOR UPDATE',
24 shared => 'LOCK IN SHARE MODE'
28 my ($self, $type) = @_;
30 my $sql = $for_syntax->{$type}
31 || $self->throw_exception("Unknown SELECT .. FOR type '$type' requested");