Skip to content

Commit

Permalink
Merge pull request #642 from vulnbe/master
Browse files Browse the repository at this point in the history
Fix issue #611
  • Loading branch information
mattmundell authored Aug 13, 2019
2 parents de148ff + 68fee1e commit 489cbcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add -f arg to sendmail call in email alert [#676](https://github.com/greenbone/gvmd/pull/676) [#678](https://github.com/greenbone/gvmd/pull/678)

### Fixed
- A PostgreSQL statement order issue [#611](https://github.com/greenbone/gvmd/issues/611) has been addressed [#642](https://github.com/greenbone/gvmd/pull/642)
- Fix iCalendar recurrence and timezone handling [#654](https://github.com/greenbone/gvmd/pull/654)
- Fix issues with some scheduled tasks by using iCalendar more instead of old period fields [#656](https://github.com/greenbone/gvmd/pull/655)
- Fix an issue in getting the reports from GMP scanners [#659](https://github.com/greenbone/gvmd/pull/659) [#665](https://github.com/greenbone/gvmd/pull/665)
Expand Down
11 changes: 5 additions & 6 deletions src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3346,12 +3346,11 @@ check_db_sequences ()
{
iterator_t sequence_tables;
init_iterator(&sequence_tables,
"SELECT table_name, column_name,"
" pg_get_serial_sequence (table_name, column_name)"
" FROM information_schema.columns"
" WHERE table_schema = 'public'"
" AND pg_get_serial_sequence (table_name, column_name)"
" IS NOT NULL;");
"WITH table_columns AS ("
" SELECT table_name, column_name FROM information_schema.columns"
" WHERE table_schema = 'public')"
" SELECT *, pg_get_serial_sequence (table_name, column_name) FROM table_columns"
" WHERE pg_get_serial_sequence (table_name, column_name) IS NOT NULL;");

while (next (&sequence_tables))
{
Expand Down

0 comments on commit 489cbcb

Please sign in to comment.