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

Use current row for iterator_null, instead of first row #1047

Merged
merged 3 commits into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix handling of termination signals [#1034](https://github.com/greenbone/gvmd/pull/1034)
- Remove db init warning that no longer makes sense [#1044](https://github.com/greenbone/gvmd/pull/1044)
- Use correct elements to get task ID in wizards [#1004](https://github.com/greenbone/gvmd/pull/1004) [#1046](https://github.com/greenbone/gvmd/pull/1046)
- Use current row for iterator_null, instead of first row [#1047](https://github.com/greenbone/gvmd/pull/1047)

### Removed
- Remove support for "All SecInfo": removal of "allinfo" for type in get_info [#790](https://github.com/greenbone/gvmd/pull/790)
Expand Down
2 changes: 1 addition & 1 deletion src/sql_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ iterator_null (iterator_t* iterator, int col)
{
if (iterator->done) abort ();
assert (iterator->stmt->result);
return PQgetisnull (iterator->stmt->result, 0, col);
return PQgetisnull (iterator->stmt->result, iterator->stmt->current_row, col);
}

/**
Expand Down