datajoint-matlab
datajoint-matlab copied to clipboard
fetching 'KEY' error
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
dataJoint-MATLAB does not have "KEY" implemented. To get the key from table q, one just omits all arguments in fetch: q.fetch()
Should we change our documentation here in that case?