Skip to content

YQL-17371: fix ASCII-compatibe bytea output in pgrun #1356

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
Jan 26, 2024

Conversation

marsaly79
Copy link
Contributor

No description provided.

@marsaly79 marsaly79 requested a review from MrLolthe1st January 26, 2024 17:37
@marsaly79 marsaly79 requested a review from a team as a code owner January 26, 2024 17:37
Copy link

github-actions bot commented Jan 26, 2024

2024-01-26 17:40:12 UTC Pre-commit check for 2d8bbcd has started.
2024-01-26 17:40:13 UTC Build linux-x86_64-release-asan is running...

Copy link

github-actions bot commented Jan 26, 2024

2024-01-26 17:40:21 UTC Pre-commit check for 2d8bbcd has started.
2024-01-26 17:40:23 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-01-26 17:41:56 UTC Build successful.
2024-01-26 17:42:12 UTC Tests are running...
🔴 2024-01-26 18:49:09 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60207 50922 0 1 9250 34

[] (ui64 acc, char c) {
return acc + ((c == '\\')
? 2
: ((ui8)c < 0x20 || 0x7e < (ui8)c)
Copy link
Collaborator

Choose a reason for hiding this comment

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

давай тут magic уберем и вынесем куда-нибудь (можно в макрос/constexpr функцию)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Это взято из кода PG. Можно поправить, но, в целом, стандартная штука же

if (c == '\\') {
*p++ = '\\';
*p++ = '\\';
} else if ((ui8)c < 0x20 || 0x7e < (ui8)c) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

тот же самый magic

@starlinskiy starlinskiy mentioned this pull request Feb 12, 2024
@vitstn vitstn mentioned this pull request Feb 16, 2024
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