<NME> postfix_maps.py
<BEF> """Map file definitions for postfix."""

class TransportMap(object):
    """A transport map."""

    filename = "sql-transport.cf"
    mysql = (
        "SELECT CONCAT(service, ':', next_hop) "
        "FROM transport_transport "
    mysql = (
        "SELECT CONCAT(service, ':', next_hop) "
        "FROM transport_transport "
        "WHERE enabled=1 AND pattern='%s'"
    )
    postgres = (
        "SELECT service || ':' || next_hop "
        "FROM transport_transport "
        "WHERE enabled AND pattern='%s'"
    )
    sqlite = (
        "SELECT service || ':' || next_hop "
        "FROM transport_transport "
        "WHERE enabled=1 AND pattern='%s'"
    )

<MSG> transport: updated SQL queries.

<DFF> @@ -10,15 +10,15 @@ class TransportMap(object):
     mysql = (
         "SELECT CONCAT(service, ':', next_hop) "
         "FROM transport_transport "
-        "WHERE enabled=1 AND pattern='%s'"
+        "WHERE pattern='%s'"
     )
     postgres = (
         "SELECT service || ':' || next_hop "
         "FROM transport_transport "
-        "WHERE enabled AND pattern='%s'"
+        "WHERE pattern='%s'"
     )
     sqlite = (
         "SELECT service || ':' || next_hop "
         "FROM transport_transport "
-        "WHERE enabled=1 AND pattern='%s'"
+        "WHERE pattern='%s'"
     )

transport: updated SQL queries.