Skip to content

fetching 'KEY' error #382

@davidgodinez

Description

@davidgodinez

Bug Report

Description

When making a fetch, using the syntax table_name.fetchn('KEY') brings about an attribute error.

Reproducibility

Include:

  • OS MACOS BIG SUR 11.5.2
  • MATLAB Version: MATLAB_R2021b
  • DataJoint Version: version 3.4.3
  • Complete error stack as a result of evaluating the above steps:
Error using dj.internal.Header/project (line 199)
Attribute `KEY` does not exist

Error in dj.internal.GeneralRelvar/compile (line 682)
                    header.project(self.operands(2:end));

Error in dj.internal.GeneralRelvar/fetch (line 212)
            [hdr, sql_] = self.compile;

Error in dj.internal.GeneralRelvar/fetchn (line 285)
            s = self.fetch(varargin{:});

Expected Behavior

The expected behavior is that the key would be fetched.

Screenshots

Screen Shot 2022-02-02 at 7 24 08 PM

Screen Shot 2022-02-03 at 9 45 59 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-triageIssues awaiting proper priority/milestone assignment.bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions