Skip to content

Commit

Permalink
Merge pull request genome#133 from ebelter/mysql
Browse files Browse the repository at this point in the history
Fix DS MySQL
  • Loading branch information
ebelter authored Mar 24, 2017
2 parents 3573d2f + 73a5cab commit 3c6565f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/UR/DataSource/MySQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ sub owner { shift->_singleton_object->login }
# undef
#}


sub _default_sql_like_escape_string { undef }; # can't do an 'escape' clause with the 'like' operator
# MySQL can't do an 'escape' clause with the 'like' operator
sub _default_sql_like_escape_string { undef };
sub _format_sql_like_escape_string { return }

sub can_savepoint { 1;}

Expand Down
2 changes: 1 addition & 1 deletion lib/UR/DataSource/RDBMS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ sub create_iterator_closure_for_rule {
my $order_by_clause = $self->resolve_order_by_clause($query_plan);

my $limit_offset_clause;
$limit_offset_clause = $self->resolve_limit_offset_clause($query_plan) if $self->does_support_limit_offset;
$limit_offset_clause = $self->resolve_limit_offset_clause($query_plan) if $self->does_support_limit_offset($rule);

my $sql = "\nselect ";
if ($select_hint) {
Expand Down

0 comments on commit 3c6565f

Please sign in to comment.