Skip to content

Create DisabledIfServerGreater annotation #3937

Merged
davecramer merged 1 commit intopgjdbc:masterfrom
davecramer:disable_test_if_server_greater
Feb 11, 2026
Merged

Create DisabledIfServerGreater annotation #3937
davecramer merged 1 commit intopgjdbc:masterfrom
davecramer:disable_test_if_server_greater

Conversation

@davecramer
Copy link
Member

for disabling tests for newer server versions

@davecramer davecramer merged commit c7b512d into pgjdbc:master Feb 11, 2026
17 of 18 checks passed
Comment on lines +470 to 475
@DisabledIfServerVersionGreater("19")
@Test
public void testSingleQuotes() throws SQLException {
// This test is only relevant for PostgreSQL 18 and below
// as of 4576208 in postgres non-standard strings now throw an error.
assumeMinimumServerVersion(ServerVersion.v18);

Copy link
Member

Choose a reason for hiding this comment

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

Previously this test would only run if the version was >=18.

With this change it only runs if it's <=18.

Is that intentional? Alternatively, am I misunderstanding how these methods work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct, the change was in 19

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

Comments