From eb87eaca8c4ec7beab490cb8dcca5941408e8662 Mon Sep 17 00:00:00 2001 From: Cian Synnott Date: Sun, 18 Jan 2015 23:37:05 +0100 Subject: Fix index for #person.address in create_table/2 {index, [2]} refers to #person.name rather than #person.address, which caused a little confusion in #erlang today. {index, [4]} is the correct "hard coded" field for #person.address. --- lib/mnesia/doc/src/mnesia.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mnesia/doc/src') diff --git a/lib/mnesia/doc/src/mnesia.xml b/lib/mnesia/doc/src/mnesia.xml index c23c2cb226..b2de8b6946 100644 --- a/lib/mnesia/doc/src/mnesia.xml +++ b/lib/mnesia/doc/src/mnesia.xml @@ -863,7 +863,7 @@ mnesia:create_table(person, {attributes, record_info(fields,person)}]).

The specification of index and attributes may be - hard coded as {index, [2]} and + hard coded as {index, [4]} and {attributes, [name, age, address, salary, children]} respectively.

-- cgit v1.2.3