Skip to content

Fix #8590 - Line "BLR to Source mapping:" may look broken when procedures.rdb$debug_info is queried using remote protocol. #8591

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

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

Conversation

asfernandes
Copy link
Member

@asfernandes asfernandes commented Jun 10, 2025

When transforming a blob of an internal type (say, isc_blob_debug_info) to text, the segments are generated without new line information.

ISQL treats it segment as a line, putting some leading spaces and the new line.

I have no idea why.

But this causes problems when remote batches segments and some are split, causing the extra new line as reported in #8590.

This change is not always backward incompatible, specially when different versions of engine x ISQL is used or non-ISQL clients converting internal blobs to text.

…ures.rdb$debug_info is queried using remote protocol.
@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

ISQL treats it segment as a line, putting some leading spaces and the new line.

I have no idea why.

I guess - because new line on server could be different from new line on client, for example - Linux server and Windows client.

Your change broke this. I would just make ISQL correctly handle RESULT_SEGMENT.

@asfernandes
Copy link
Member Author

This problem has been resolved in stdout around the 1900 years.

@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

This problem has been resolved in stdout around the 1900 years.

How your patch is relatied with it ?

@asfernandes
Copy link
Member Author

I would just make ISQL correctly handle RESULT_SEGMENT.

If you looked at details of the problem, you would saw that ISQL does not receives RESULT_SEGMENT at all.

@asfernandes asfernandes self-assigned this Jun 10, 2025
@aafemt
Copy link
Contributor

aafemt commented Jun 10, 2025

If you looked at details of the problem, you would saw that ISQL does not receives RESULT_SEGMENT at all.

Then this is an another bug to be fixed.

@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

I would just make ISQL correctly handle RESULT_SEGMENT.

If you looked at details of the problem, you would saw that ISQL does not receives RESULT_SEGMENT at all.

Then, what do you mean here ?

But this causes problems when remote batches segments and some are split, causing the extra new line as reported in #8590.

@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

Lets fix the real bug - in string_filter()

@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

See #8594

@asfernandes
Copy link
Member Author

The Firebird team thanks you for effort duplication.
And I'd say this is a problem here too, the way it does is inefficient and more complex than necessary.

@hvlad
Copy link
Member

hvlad commented Jun 10, 2025

The Firebird team thanks you for effort duplication.

Are you present the whole team ? Or you going to tell me what to do ?

And I'd say this is a problem here too, the way it does is inefficient and more complex than necessary.

The issue should be fixed correctly and not broke old code, when possible, like you it or not.
Your fix is wrong, by my opinion, and I offer a correct one.

@hvlad hvlad assigned hvlad and unassigned hvlad Jun 11, 2025
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.

Line "BLR to Source mapping:" may look broken when procedures.rdb$debug_info is queried using remote protocol
3 participants