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

Fix/issue 289 (complement) #296

Merged
merged 4 commits into from
May 17, 2024
Merged

Conversation

maximevw
Copy link
Contributor

In complement of the first fix for issue #289.
This overrides the expected method isDatabaseChangeLogLockTableInitialized(boolean, boolean) of StandardLockService to guarantee usage of the initial patch.

See: #289 (comment)

maximevw and others added 4 commits May 6, 2024 14:08
As explained in the issue liquibase#289, the aggregate functions are not supported by AWS Keyspaces.
This fix tries to execute counting queries and if it fails, the same query without the COUNT
function is executed and the returned rows are counted programmatically.

Also removes code specific to `MSSQLDatabase` in `LockServiceCassandra` obviously not related
with Liquibase implementation for Cassandra.
Copy link

sonarcloud bot commented May 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@filipelautert filipelautert left a comment

Choose a reason for hiding this comment

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

@maximevw this patch makes a lot of sense, as in core isDatabaseChangeLogLockTableInitialized(boolean) calls the method you override here using false.

@filipelautert filipelautert merged commit c44544d into liquibase:main May 17, 2024
14 of 16 checks passed
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

2 participants