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

Ctrl-C on JSONB string creates badly quoted contents #8157

Open
riuttner opened this issue Nov 21, 2024 · 0 comments
Open

Ctrl-C on JSONB string creates badly quoted contents #8157

riuttner opened this issue Nov 21, 2024 · 0 comments
Labels

Comments

@riuttner
Copy link

Trying to copy any JSONB contents from Data Output window by keystroke Ctrl-C ends up with a copy buffer containing a double-quoted string, having all double quotes inside doubled.

Execute:
select '{"a":"bbb", "c":"ddd"}'::jsonb

Double click single result opens a view showing:

{
   "a": "bbb",
   "c": "ddd"
}

Select all lines, press Ctrl-C, paste contents anywhere in pgadmin or in any text editor. This will yield the wrong result:
"{""a"": ""bbb"", ""c"": ""ddd""}"

Expected result is:
{"a":"bbb", "c":"ddd"}

This bug also appears for contents of type JSON, not only for JSONB. I could observe it all the time after upgrading from 8.12 to 8.13. Apparently the latest release just accidentally uses the wrong quotes for copied JSON strings, which internally also leads to doubled double quotes.

Tested in environment:
Version
8.13
Application Mode
Desktop
Commit:
b278265 2024-11-11
Current User
[email protected]
Electron Version
33.2.0
Browser
Chrome 130.0.6723.118
Operating System
Windows-10-10.0.19045-SP0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant