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

Add support for sequence type for h2 #1789

Merged
merged 3 commits into from
May 31, 2024

Conversation

rlconst
Copy link
Contributor

@rlconst rlconst commented Oct 16, 2022

This is rough attempt to support sequence types for H2 http://www.h2database.com/html/grammar.html#column_definition

@dstepanov
Copy link
Contributor

Looks like there are failing tests

@CLAassistant
Copy link

CLAassistant commented Feb 7, 2024

CLA assistant check
All committers have signed the CLA.

@rlconst
Copy link
Contributor Author

rlconst commented Feb 8, 2024

Rebased. Github doesn't see signed CLA for some reason

@rlconst
Copy link
Contributor Author

rlconst commented Feb 8, 2024

Weird exception. Looks like API changed https://github.com/micronaut-projects/micronaut-data/pull/1789/checks#step:8:13024

@dstepanov if you have idea what it is it'll be helpful. I'll take a look later

def queryModel = QueryModel.from(entity).eq("name", QueryParameter.of("name"))

expect:
builder.dialect == Dialect.H2
Copy link
Contributor

@radovanradic radovanradic Feb 8, 2024

Choose a reason for hiding this comment

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

I think buildQuery method has been changed in 4.0 here #2323 (comment) and need AnnotationMetadata so just need to add this AnnotationMetadata.EMPTY_METADATA as first parameter, for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@radovanradic I fixed failing test

@rlconst rlconst force-pushed the h2-sequence branch 3 times, most recently from 5997e13 to f96ab3b Compare May 10, 2024 06:29
@rlconst rlconst changed the base branch from 4.7.x to 4.8.x May 10, 2024 06:55
@dstepanov
Copy link
Contributor

Please target 4.9

@sdelamo
Copy link
Contributor

sdelamo commented May 13, 2024

Please target 4.9

4.8.x is fine. 4.8.x is the next major branch.

@sdelamo sdelamo added the type: enhancement New feature or request label May 13, 2024
@graemerocher graemerocher merged commit 2ca2983 into micronaut-projects:4.8.x May 31, 2024
1 check passed
@graemerocher
Copy link
Contributor

Thanks for the contribution!

radovanradic added a commit that referenced this pull request Jun 2, 2024
radovanradic added a commit that referenced this pull request Jun 3, 2024
graemerocher pushed a commit that referenced this pull request Jun 3, 2024
* Fix H2 tests after latest merge for H2 generate schema changes

This PR had test failures: #1789
radovanradic added a commit that referenced this pull request Jun 3, 2024
* Update common files

* Fix H2 tests after latest merge for H2 generate schema changes (#2964)

* Fix H2 tests after latest merge for H2 generate schema changes

This PR had test failures: #1789

* Update common files

---------

Co-authored-by: Radovan Radic <[email protected]>
radovanradic added a commit that referenced this pull request Jun 4, 2024
* Test for many to many join issue

* Fix H2 tests after latest merge for H2 generate schema changes

This PR had test failures: #1789

* Fixed one more test for H2

* Fix H2 tests after latest merge for H2 generate schema changes (#2964)

* Fix H2 tests after latest merge for H2 generate schema changes

This PR had test failures: #1789

* Test for many to many join issue

* Fix join issue

* Checkstyle

---------

Co-authored-by: Denis Stepanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants