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 fetchn on queries with zero results #355

Merged
merged 8 commits into from
Mar 16, 2021
Merged

Fix fetchn on queries with zero results #355

merged 8 commits into from
Mar 16, 2021

Conversation

guzman-raphael
Copy link
Collaborator

@guzman-raphael guzman-raphael commented Mar 16, 2021

Depends on datajoint/mysql-docker#29
Fix #353
Fix #352

@guzman-raphael guzman-raphael marked this pull request as draft March 16, 2021 20:31
@guzman-raphael guzman-raphael marked this pull request as ready for review March 16, 2021 21:10
Copy link
Member

@dimitri-yatsenko dimitri-yatsenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@dimitri-yatsenko dimitri-yatsenko merged commit 755ea67 into master Mar 16, 2021
@@ -289,7 +289,8 @@ function clip(self)
for iArg=1:length(specs)
% if renamed, use the renamed attribute
name = regexp(specs{iArg}, '(\w+)\s*$', 'tokens');
if isnumeric(s(1).(name{1}{1})) && length(s(1).(name{1}{1})) == 1
sel = cellfun(@(x) strcmp(x, name{1}{1}), {self.header.attributes.name});
if self.tableHeader.attributes(sel).isNumeric
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may have introduced a regression - received a report elsewhere:

To fix the bug I changed:
In dj.internal.GeneralRelvar  (line 293) I changed
if self.tableHeader.attributes(sel).isNumeric
to
if self.header.attributes(sel).isNumeric

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this has been filed as an issue in: #364; disregard discussion here.

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.

bug with fetchn in DJ 3.4.1 MATLAB Documentation has syntax error for next auto_increment value
3 participants