Skip to content

DATAJDBC-257 - Adds DB2 support. … #213

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

Closed
wants to merge 3 commits into from
Closed

Conversation

schauder
Copy link
Contributor

@schauder schauder commented May 5, 2020

Db2Dialect added in order to support DB2.
Added test configuration files.
Adapted some tests to make them properly work with DB2
QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics.

Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository.
For the CI build an appropriate file gets created on the fly.

Issue: DATAJDBC-257

schauder added 2 commits May 5, 2020 09:56
Db2Dialect added in order to support DB2.
Added test configuration files.
Adapted some tests to make them properly work with DB2
QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics.

Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository.
For the CI build an appropriate file gets created on the fly.
@@ -185,6 +185,25 @@
<version>${mssql.version}</version>
<scope>test</scope>
</dependency>
<!--
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this block?

import org.testcontainers.containers.Db2Container;

/**
* {@link DataSource} setup for HSQL.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: DB2

@@ -0,0 +1,93 @@
/*
* Copyright 2019-2020 the original author or authors.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Inception year of this file is 2020.

@@ -0,0 +1,59 @@
/*
* Copyright 2017-2020 the original author or authors.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: 2020 only

Removed superfluous commented code and imports.
Fixed year in copyright blocks.
Improved Javadoc comments.
@schauder
Copy link
Contributor Author

schauder commented May 6, 2020

@mp911de your turn again.

mp911de pushed a commit that referenced this pull request May 6, 2020
Db2Dialect added in order to support DB2.
Added test configuration files.
Adapted some tests to make them properly work with DB2
QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics.

Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository.
For the CI build an appropriate file gets created on the fly.

Original pull request: #213.
mp911de added a commit that referenced this pull request May 6, 2020
Move container initialization from static initializer into createDataSource() to not trigger container start when loading the class.
Add TestExecutionListener to ignore tests if the license for a container was not accepted. Add Awaitility to delay test execution until the database is ready so we avoid strange failures due to a delayed container startup.

Fix generics, since tags, author tags. Reformat code.

Original pull request: #213.
@mp911de
Copy link
Member

mp911de commented May 6, 2020

That's merged and polished now.

@mp911de mp911de closed this May 6, 2020
@mp911de mp911de deleted the issue/DATAJDBC-257 branch May 6, 2020 13:51
mp911de added a commit that referenced this pull request May 6, 2020
Move container initialization from static initializer into createDataSource() to not trigger container start when loading the class.
Add TestExecutionListener to ignore tests if the license for a container was not accepted. Add Awaitility to delay test execution until the database is ready so we avoid strange failures due to a delayed container startup.

Fix generics, since tags, author tags. Reformat code.

Original pull request: #213.
mp911de pushed a commit that referenced this pull request Feb 21, 2022
mp911de added a commit that referenced this pull request Feb 21, 2022
Consistently apply summing of updated rows. Tweak copyright years in license header to reflect file inception year.

Original pull request: #213.
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.

2 participants