TablePlus-Windows icon indicating copy to clipboard operation
TablePlus-Windows copied to clipboard

Brackets within a function, within an array breaks the current query highlighting

Open zanmato opened this issue 3 years ago • 0 comments

Please answer the questions below, it helps us to track the issue.

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): PostgreSQL 14.0

  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): 4.10.5 (202)

  3. The steps to reproduce this issue: The following query will break the current query highlighting, causing TablePlus to run any queries below it as well.

SELECT ARRAY[
  (regexp_match('testing', '[A-z]+'))[1]
];

SELECT 1234; -- This will be executed as well

Another example,

SELECT ARRAY[REPLACE('something', 'some', '[BIG] ')];

SELECT 1234; -- This will be executed as well

zanmato avatar Aug 26 '22 14:08 zanmato