Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix persist/2 and load/2 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mnishiguchi
Copy link

This is to fix #1. Currently persist/2 and load/2 seem broken due to wrong data type for path.

Currently path is passed as a String; however, the Erlang functions do not see to accept a String.

iex> :dets.open_file(:my_dets_table, file: 'hello')
{:ok, :my_dets_table}

iex> :dets.open_file(:my_dets_table, file: "world")
** (ArgumentError) argument error
    (stdlib 3.15.1) dets.erl:658: :dets.open_file(:my_dets_table, [file: "world"])

As soon as the data type is corrected, it gets working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When persistence is used getting an erlang error
1 participant