Create table in a transaction

Dan Gudmundsson dgud@REDACTED
Thu Nov 2 13:23:40 CET 2000


Sorry, but you can't do schema_transactions inside a normal transaction.

schema_transaction's include 
create_table
move_table_copy
add_table_copy
change_table_copy
del_table
transform_table
..

I got some requests on this but it is a lot of work do it rigth
with current implementation..

/Dan

Chandrashekhar Mullaparthi writes:
 > 
 > I can't create a table within a transaction. Why is that?? A comment in
 > mnesia_schema.erl says that a "very special transaction is used when we want
 > to manipulate the schema". Basically what I want to do is:
 > 
 > * Do some checks
 > * Update table_1
 > * create table_2
 > * Make entries in table_2
 > 
 > in one single transaction. I'm failing at step 3.
 > 
 > tia,
 > Chandru
 > 



More information about the erlang-questions mailing list