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

Dmitri Girenko <>
Mon Jan 21 15:02:45 CET 2008


Wow, how swiftly!
Thanks a lot.

> -----Original Message-----
> From:  [mailto:erlang-questions-
> ] On Behalf Of Hans Bolinder
> Sent: 21. tammikuuta 2008 15:53
> To: 
> Subject: Re: [erlang-questions] clarify: qlc, mnesia and unique_all
> 
> [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};
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list