Skip to content

Incorrect error for duplicate entry #157

@davidgodinez

Description

@davidgodinez

Bug Report

Description

When attempting to insert an entry which a duplicate primary key, the follow error is presented:

(1265, "Data truncated for column 'sex' at row 1")

Reproducibility

Include:

  • OS: MAC OS Big Sur 11.5.2 (20G95)
  • DataJoint LabBook Version : Front End Version: 0.1.0 Back End Version: 0.1.0

Expected Behavior

DuplicateError: ("Duplicate entry '0' for key 'PRIMARY'", 'To ignore duplicate entries in insert, set skip_duplicates=True')

Screenshots

If applicable, add screenshots to help explain your problem.
Screen Shot 2021-08-25 at 3 23 33 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions