Skip to content

Fix for #8249 #8270

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

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Fix for #8249 #8270

merged 2 commits into from
Oct 4, 2024

Conversation

aafemt
Copy link
Contributor

@aafemt aafemt commented Sep 28, 2024

No description provided.

@romansimakov
Copy link
Contributor

Let's please write more details in commit messages. A reference to a ticket is not enough IMO. Ticket describes WHAT is fixed but a commit message should describe HOW it was fixed.

@@ -9597,33 +9597,24 @@ static const char* charset_to_string(unsigned charset)
**************************************/
static Firebird::GlobalPtr<Firebird::GenericMap<Firebird::Pair<Firebird::Right<unsigned, string> > > > csMap;

charset = TTYPE_TO_CHARSET(charset);
Copy link
Member

Choose a reason for hiding this comment

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

What is the relation of this isql changes with #8249 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

QA team and me should have a way to check field collation to make sure that #8249 really fixed and result of the CAST() has the right collation. The simplest way - to print collation in SQLDA along to the charset. That's why this change.

Copy link
Member

Choose a reason for hiding this comment

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

First, ISQL showed the charset/collation id, so it was identifiable.
You want to display also the collation name, but this change makes it incorrectly. Collation ids, different from charset ids, are far from be stable between different databases. I suggest to revert this part of the patch.

@aafemt
Copy link
Contributor Author

aafemt commented Sep 28, 2024

commit message should describe HOW it was fixed.

It is written in code: CastNode now sends the right collation name instead of NULL to DDL_resolve_intl_type().

@@ -9597,33 +9597,24 @@ static const char* charset_to_string(unsigned charset)
**************************************/
static Firebird::GlobalPtr<Firebird::GenericMap<Firebird::Pair<Firebird::Right<unsigned, string> > > > csMap;

charset = TTYPE_TO_CHARSET(charset);
Copy link
Member

Choose a reason for hiding this comment

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

First, ISQL showed the charset/collation id, so it was identifiable.
You want to display also the collation name, but this change makes it incorrectly. Collation ids, different from charset ids, are far from be stable between different databases. I suggest to revert this part of the patch.

@aafemt aafemt requested a review from asfernandes October 4, 2024 09:52
@asfernandes asfernandes merged commit aa167e2 into FirebirdSQL:master Oct 4, 2024
24 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

3 participants