cd /usr/local/src/postfix-2.8.5
grep -rlni CLIENT_MULTI_RESULTS .

... nothing.

Assuming the patch at

 http://errorval.livejournal.com/37425.html

works, it looks very similar for current v285 src,

--
--- ./src/global/dict_mysql.c.ORIG      2010-06-18 15:25:13.000000000 -0700
+++ ./src/global/dict_mysql.c   2011-10-15 16:06:48.987965623 -0700
@@ -516,6 +516,7 @@
            } else {
                if (msg_verbose)
                    msg_info("dict_mysql: successful query from host
%s", host->hostname);
+       while ( mysql_next_result(host->db) == 0);
                event_request_timer(dict_mysql_event, (char *) host,
IDLE_CONN_INTV);
                break;
            }
@@ -544,7 +545,7 @@
                           dbname,
                           host->port,
                           (host->type == TYPEUNIX ? host->name : 0),
-                          0)) {
+                          CLIENT_MULTI_RESULTS)) {
        if (msg_verbose)
            msg_info("dict_mysql: successful connection to host %s",
                     host->hostname);
--

The wiki says

 http://www.postfix.org/PGSQL_README.html
 "Updates for Postfix 1.1.x and PostgreSQL 7.1+ and support for
calling stored procedures were added by Philip Warner."

Can't find similar for MySQL at

 http://www.postfix.org/MYSQL_README.html

or anywhere else I've looked yet.

Rather than kludging, I'd like to know if StoredProcs are, or will be
soon, 'in' Postfix.

Rich

Reply via email to