Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
0766-Ensure-create_table-aborted-reason-is-expe...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0766-Ensure-create_table-aborted-reason-is-expected-forma.patch of Package erlang
From 15e33a75b79620a529e2e1d028e5308c146cc965 Mon Sep 17 00:00:00 2001 From: Luke Bakken <luke@bakken.io> Date: Wed, 10 Jul 2019 10:33:20 -0700 Subject: [PATCH] Ensure create_table aborted reason is expected format According to the docs and other `{aborted, ` return values, the form should be `{aborted, Reason}`, where `Reason` is a single term. This fix makes `mnesia:create_table/2` consistent with that expectation. --- lib/mnesia/src/mnesia.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl index 02bc884e36..9d462f0a63 100644 --- a/lib/mnesia/src/mnesia.erl +++ b/lib/mnesia/src/mnesia.erl @@ -2731,7 +2731,7 @@ create_table(Arg) -> create_table(Name, Arg) when is_list(Arg) -> mnesia_schema:create_table([{name, Name}| Arg]); create_table(Name, Arg) -> - {aborted, badarg, Name, Arg}. + {aborted, {badarg, Name, Arg}}. -spec delete_table(Tab::table()) -> t_result('ok'). delete_table(Tab) -> -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor