Skip to content

Commit

Permalink
Merge pull request #1047 from mattmundell/null-refs
Browse files Browse the repository at this point in the history
Use current row for iterator_null, instead of first row
  • Loading branch information
timopollmeier authored Apr 16, 2020
2 parents 20c7081 + b316f09 commit 870b682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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

0 comments on commit 870b682

Please sign in to comment.