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

Escape apostrophe / single quote with backslash no longer works #16064

Closed
johamm opened this issue Apr 4, 2022 · 3 comments
Closed

Escape apostrophe / single quote with backslash no longer works #16064

johamm opened this issue Apr 4, 2022 · 3 comments

Comments

@johamm
Copy link

johamm commented Apr 4, 2022

I updated to the latest version of DBeaver this morning (Version 22.0.2.202204021640) and since anything that I'm attempting to select from a database with an apostrophe is no longer working when I escape with a backslash.

For example:

select * from table1 where field1 = 'Jo\'s escaped string';

I know I can just change my enclosures to be double quotes and remove the backslash or even use two apostrophes instead of one but sometimes my code is copied from my scripts and it's a hassle to change them over when adding into DBeaver when a backslash should work ok.

Is there any way I can put this escape method back in?

My setup:

  • Operating system: Windows 11
  • DBeaver version: 22.0.2.202204021640
  • Database type: MariaDB (no SSH)
@johamm johamm changed the title Escape apostrophe/ single quote with backslash no longer works Escape apostrophe / single quote with backslash no longer works Apr 4, 2022
@E1izabeth
Copy link
Member

Hi, @johamm! Thank you for bug report. Unfortunately, I can't reproduce it for now. Was the connection established when it happened?

@johamm
Copy link
Author

johamm commented Apr 5, 2022

The connection was established as I could run other queries fine. However. this is very odd... I've tried it again today (after the program was closed and my machine has since restarted) and it seems to work now!!!

@E1izabeth
Copy link
Member

Thank you for the reply. I'll close this issue. Please, feel free to reopen it if this happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants