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

Experimental DB2 support #274

Merged
merged 13 commits into from
Dec 17, 2018
Merged

Experimental DB2 support #274

merged 13 commits into from
Dec 17, 2018

Conversation

eputtone
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Dec 13, 2018

Coverage Status

Coverage remained the same at 72.414% when pulling 16ae216 on db2-tzissue into 0eb821f on master.

Long propsTimeZoneOffsetHours = HOURS.convert(
TimeZone.getTimeZone(property(env, "timezone")).getOffset(currentTimeMillis()), MILLISECONDS);
if (!Objects.equals(dbTimeZoneOffsetHours, propsTimeZoneOffsetHours)) {
throw new RuntimeException("Database has unexpected time zone - hour offset DB2: " + dbTimeZoneOffsetHours +
Copy link
Member

Choose a reason for hiding this comment

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

add expected offset to exception message

Copy link
Member Author

Choose a reason for hiding this comment

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

Added


-- Archive tables
-- - no default values
-- - no default values
Copy link
Member

Choose a reason for hiding this comment

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

duplicate line

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

constraint nflow_workflow_uniq unique (type, external_id, executor_group)
);

-- create or replace function update_modified() returns trigger language plpgsql as '
Copy link
Member

Choose a reason for hiding this comment

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

This commented stuff is Oracle related? Could be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was just missing :). Integration tests didn't cover checking that modified-column auto-updates. Now they include at least one check.


/**
* Configuration for DB2 database. Note: tested only using DB2 Express-C (Docker: ibmcom/db2express-c).
* DB2 database must be configured to UTC time zone, otherwise nFlow will fail to function correctly.
Copy link
Member

Choose a reason for hiding this comment

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

remove line about UTC

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@gmokki gmokki merged commit bb5a19b into master Dec 17, 2018
@gmokki gmokki deleted the db2-tzissue branch December 17, 2018 12:18
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.

None yet

5 participants