Bug 70605 - Reenable optimisation

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1826 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2013-09-30 13:06:10 +00:00
parent 906f9afcbc
commit 4d08201bc8
1 changed files with 3 additions and 2 deletions

View File

@ -3195,8 +3195,9 @@ sub expression_sql_and
# (the reference can be copied by expand_expression())
my $t_table = replace_lit($t->{table}, 'bugs.', "bugs$seq.");
my $t_where = replace_lit($t->{where}, 'bugs.', "bugs$seq.");
# Disabled - it seems newer MySQL/MariaDB does not need this optimisation
if (0 && $t->{bugid_field} && !$t->{neg} && $t->{many_rows} &&
# The good way would be to select between these execution methods
# on the fly, but it would require simulating DB query optimizer :(
if ($t->{bugid_field} && !$t->{neg} && $t->{many_rows} &&
($many_rows++) > 0)
{
# Allow only one many_rows=1 term in a query,