[fix] 1646 transport sql is not using indexes
This commit is contained in:
parent
3fb27e2444
commit
6d7544067a
|
@ -9,6 +9,7 @@ alternc (3.1.4) oldstable; urgency=low
|
|||
* fix removal of awstats-package crontab in favor of AlternC's one
|
||||
* fix unzip/untar/ungzip of files from the browser (double escapeshellarg)
|
||||
* 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
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ password = %%db_mail_pwd%%
|
|||
hosts =%%dbhost%%
|
||||
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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue