From 71cf315373a2ed2e1c3460349cfa1daddd3d2422 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 13 Jun 2010 11:45:59 -0400 Subject: [PATCH] Ignore the 'ALL' domain. --- src/postfixadmin_db.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/postfixadmin_db.rb b/src/postfixadmin_db.rb index f4e6feb..d9112af 100644 --- a/src/postfixadmin_db.rb +++ b/src/postfixadmin_db.rb @@ -31,7 +31,8 @@ class PostfixadminDb @db_user, @db_pass) - sql_query = 'SELECT domain FROM domain;' + # 'ALL' is a magic domain, and we don't want it. + sql_query = "SELECT domain FROM domain WHERE domain <> 'ALL';" result = connection.query(sql_query) connection.close() rescue PGError => e -- 2.44.2