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

Failed after schema change. #68

Closed
Erzed opened this issue May 31, 2021 · 2 comments
Closed

Failed after schema change. #68

Erzed opened this issue May 31, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Erzed
Copy link

Erzed commented May 31, 2021

DB:

create table "user"
(
	id serial,
	first_name text,
	last_name text,
	email_field text
);

insert into "user" (first_name, last_name, email_field) VALUES ('A', 'B', 'c@example.com');
alter table "user" drop column last_name;

Config:

tables:
  - name: "user"
    rules:
      email_field:
        email:
          kind: Safe

Error:

thread 'main' panicked at 'index out of bounds: the len is 3 but the index is 3', datanymizer_engine/src/engine.rs:40:25
@evgeniy-r
Copy link
Member

Hello! We will take a look.

@evgeniy-r evgeniy-r added the bug Something isn't working label May 31, 2021
@evgeniy-r evgeniy-r self-assigned this May 31, 2021
@evgeniy-r
Copy link
Member

The fix was merged into the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants