[fix] 1646 transport sql is not using indexes

This commit is contained in:
Benjamin Sonntag 2015-04-24 14:45:42 +02:00
parent 3fb27e2444
commit 6d7544067a
2 changed files with 2 additions and 2 deletions

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ alternc (3.1.4) oldstable; urgency=low
* fix removal of awstats-package crontab in favor of AlternC's one * fix removal of awstats-package crontab in favor of AlternC's one
* fix unzip/untar/ungzip of files from the browser (double escapeshellarg) * fix unzip/untar/ungzip of files from the browser (double escapeshellarg)
* fix catchall management (bugguy & crappy error messages) * fix catchall management (bugguy & crappy error messages)
* fix #1646 transport sql is not using indexes
-- Benjamin Sonntag <benjamin@sonntag.fr> Mon, 20 Apr 2015 18:00:12 +0200 -- Benjamin Sonntag <benjamin@sonntag.fr> Mon, 20 Apr 2015 18:00:12 +0200

View File

@ -7,7 +7,6 @@ password = %%db_mail_pwd%%
hosts =%%dbhost%% hosts =%%dbhost%%
dbname = %%dbname%% dbname = %%dbname%%
query = select delivery from mailbox join address on address.id = mailbox.address_id join domaines on domaines.id = address.domain_id where concat(address.address,'@',domaines.domaine) ='%s' query = SELECT delivery FROM mailbox JOIN address ON address.id = mailbox.address_id JOIN domaines ON domaines.id = address.domain_id WHERE address.address=SUBSTRING_INDEX('%s','@',1) AND domaines.domaine=SUBSTRING_INDEX('%s','@',1)