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

HHH-17246 - Guard against Sybase being configured for truncating trailing zeros #9079

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jrenaat
Copy link
Contributor

@jrenaat jrenaat commented Oct 10, 2024


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-17246

@jrenaat jrenaat requested a review from beikov October 10, 2024 19:26
@gavinking
Copy link
Member

@jrenaat It should be possible to detect that Sybase is configured like this, right? Just like we detect certain things about how MySQL or Oracle is configured, when we instantiate their dialects.

I think we should start logging warnings for such "bad" config, i.e. this thing, and also non-ANSI nulls.

@jrenaat
Copy link
Contributor Author

jrenaat commented Oct 11, 2024

@jrenaat It should be possible to detect that Sybase is configured like this, right? Just like we detect certain things about how MySQL or Oracle is configured, when we instantiate their dialects.

I think we should start logging warnings for such "bad" config, i.e. this thing, and also non-ANSI nulls.

I tried to find out how to do this, but failed miserably ...

@@ -41,7 +41,7 @@
return ToStringTransformer.INSTANCE.transform( value );
}

public UUID fromString(CharSequence string) {
public UUID fromString(CharSequence string) {

Check notice

Code scanning / CodeQL

Missing Override annotation

This method overrides [BasicJavaType<UUID>.fromString](1); it is advisable to add an Override annotation.
…ling zeros

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
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.

3 participants