Commit 07c372939911acc732c81ec7297cec5a60a2d8a6

Authored by Antonio Terceiro
1 parent 2926b2ca

ActionItem1165: fixing syntax error

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
util/mail/postgresql/mail_users.sql
... ... @@ -2,7 +2,7 @@ CREATE OR REPLACE VIEW mail_users
2 2 AS
3 3 SELECT
4 4 users.login || '@' || domains.name as username,
5   - if users.password_type = 'crypt' then
  5 + case when users.password_type = 'crypt' then
6 6 users.crypted_password
7 7 else
8 8 '{MD5}' || encode(decode(users.crypted_password,'hex'), 'base64')
... ...