[erlang-questions] clarify: qlc, mnesia and unique_all

Hans Bolinder <>
Mon Jan 21 14:52:30 CET 2008


[Dmitri Girenko:]
> I am having strange problems with qlc's unique_all option.
> ...

Thanks for the bug report. The patch below should fix the problem:

Best regards,

Hans Bolinder, Erlang/OTP team

*** /usr/local/otp/releases/otp_beam_solaris8_r11b_patched/lib/stdlib-1.14.5.3/src/qlc.erl	Wed Sep 19 16:58:25 2007
--- qlc.erl	Mon Jan 21 14:16:51 2008
***************
*** 1335,1341 ****
              Prep = Prep0#prepared{qh = LE0#qlc_table{lu_vals = LuV}},
              {skip, SkipFils, LU, Prep};
          #qlc_table{trav_MS = true} when MS =/= no_match_spec ->
!             Prep = Prep0#prepared{qh = LE0#qlc_table{ms = MS}},
              {replace, Fs, false, may_create_simple(Opt, Prep)};
          #qlc_list{l = []} -> % unique and cached
              {replace, Fs, false, Prep0};
--- 1335,1342 ----
              Prep = Prep0#prepared{qh = LE0#qlc_table{lu_vals = LuV}},
              {skip, SkipFils, LU, Prep};
          #qlc_table{trav_MS = true} when MS =/= no_match_spec ->
!             Prep = Prep0#prepared{qh = LE0#qlc_table{ms = MS},
!                                   is_unique_objects = false},
              {replace, Fs, false, may_create_simple(Opt, Prep)};
          #qlc_list{l = []} -> % unique and cached
              {replace, Fs, false, Prep0};



More information about the erlang-questions mailing list