From 07c372939911acc732c81ec7297cec5a60a2d8a6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 12 Aug 2009 21:19:39 -0300 Subject: [PATCH] ActionItem1165: fixing syntax error --- util/mail/postgresql/mail_users.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/mail/postgresql/mail_users.sql b/util/mail/postgresql/mail_users.sql index 74d6027..386d7f7 100644 --- a/util/mail/postgresql/mail_users.sql +++ b/util/mail/postgresql/mail_users.sql @@ -2,7 +2,7 @@ CREATE OR REPLACE VIEW mail_users AS SELECT users.login || '@' || domains.name as username, - if users.password_type = 'crypt' then + case when users.password_type = 'crypt' then users.crypted_password else '{MD5}' || encode(decode(users.crypted_password,'hex'), 'base64') -- libgit2 0.21.2