Skip to content
Browse files

Fix the aaa."user" view. Use a LEFT OUTER JOIN. Duh. For example, aaa…

….user_info could contain empty rows if the user hasn't set their timezone.

Signed-off-by: Sean Chittenden <>
  • Loading branch information...
1 parent 64ca47c commit 8878be32f4140704f748d43f9f9331712c917777 @sean- committed Jun 9, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 sql/initialize/280_views.sql
3 sql/initialize/280_views.sql
@@ -10,8 +10,7 @@ aaa.user (id, active, registration_utc, max_concurrent_sessions,,, u.registration_utc, u.max_concurrent_sessions,
u.default_ipv4_mask, u.default_ipv6_mask, ui.timezone_id
- shadow.aaa_user AS u, aaa.user_info AS ui
- WHERE =;
+ shadow.aaa_user AS u LEFT OUTER JOIN aaa.user_info AS ui ON ( = ui.user_id);
-- Enable this view in the email schema since access to email data should

0 comments on commit 8878be3

Please sign in to comment.
Something went wrong with that request. Please try again.