Commit 07c372939911acc732c81ec7297cec5a60a2d8a6
1 parent
2926b2ca
Exists in
master
and in
22 other branches
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,7 +2,7 @@ CREATE OR REPLACE VIEW mail_users | ||
| 2 | AS | 2 | AS |
| 3 | SELECT | 3 | SELECT |
| 4 | users.login || '@' || domains.name as username, | 4 | users.login || '@' || domains.name as username, |
| 5 | - if users.password_type = 'crypt' then | 5 | + case when users.password_type = 'crypt' then |
| 6 | users.crypted_password | 6 | users.crypted_password |
| 7 | else | 7 | else |
| 8 | '{MD5}' || encode(decode(users.crypted_password,'hex'), 'base64') | 8 | '{MD5}' || encode(decode(users.crypted_password,'hex'), 'base64') |