Ticket #169 (closed bug: fixed)

Opened 22 months ago

Last modified 22 months ago

SET search_path = value

Reported by: brsa Owned by: gleu
Priority: minor Milestone: 1.10.3
Component: pgadmin Version: 1.10
Keywords: browser sqlpane Cc:
Platform: all

Description

The syntax for the SQL command SET requires a value, not a string (with single quotes) in a number of cases. Not exactly intuitive but that's how it is.

The reverse engineered code for roles falls victim to this pitfall and adds single quotes, which is wrong.

-- demo --
-- I say:
CREATE ROLE test;
ALTER ROLE test SET search_path=test, public;

-- pgAdmin says:
CREATE ROLE test

NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;

ALTER ROLE test SET search_path='test, public'; -- note the quotes!

Change History

Changed 22 months ago by brsa

  • priority changed from critical to minor

Changed 22 months ago by gleu

  • status changed from new to assigned
  • owner changed from dpage to gleu
  • milestone set to 1.10.3

Fixed in r8287 and r8290.

Changed 22 months ago by gleu

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.