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

Implemented missing cache functions for Postgis module. #3036

Merged
merged 1 commit into from
May 8, 2023

Conversation

Ryszard-Trojnacki
Copy link
Contributor

This is a fix for #3026. It resolves the problem. JUnit tests confirms this.

There is also a problem with latte package mapping. This PR doesn't address latte package mappings.

Copy link
Contributor

@rPraml rPraml left a comment

Choose a reason for hiding this comment

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

It makes sense to me.

Side note:
I noticed that jsonRead/jsonWrite (and readData/writeData) is also not yet implemented.
If you mean, it makes sense to implement this, you may find a reference implementation here - but this should not be done in this PR

try {
return new LineString(value);
} catch (SQLException e) {
throw new IllegalStateException(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

I was wondering if it would make sense to include the erroneous value here as message argument, but as far as I can see LineString is already throwing a SqlException with the value included in the message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I think, this error should never occur. String value passed to constructor is generated with this same code (LineString#toString()). This could happen, when WTK string would be from external source, but this is not the case.

@rbygrave rbygrave added the bug label May 8, 2023
@rbygrave rbygrave added this to the 13.17.4 milestone May 8, 2023
@rbygrave rbygrave linked an issue May 8, 2023 that may be closed by this pull request
@rbygrave rbygrave merged commit b832490 into ebean-orm:master May 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgis with cache is not working
3 participants