dbTalk Databases Forums  

[BUGS] BUG #2758: missing quotes in SQL sentence

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2758: missing quotes in SQL sentence in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
scoanda
 
Posts: n/a

Default [BUGS] BUG #2758: missing quotes in SQL sentence - 11-14-2006 , 10:17 AM







The following bug has been logged online:

Bug reference: 2758
Logged by: scoanda
Email address: sabin.coanda (AT) deuromedia (DOT) ro
PostgreSQL version: 8.1.4
Operating system: Windows XP sp2
Description: missing quotes in SQL sentence
Details:

I set the transaction isolation level for an user with
ALTER ROLE <user> SET default_transaction_isolation='read committed';

In pgAdmin I get the sentence without quotes:
ALTER ROLE <user> SET default_transaction_isolation=read committed;

This doesn't work if I copy/paste to SQL Query window.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Jim C. Nasby
 
Posts: n/a

Default Re: [BUGS] BUG #2758: missing quotes in SQL sentence - 11-14-2006 , 01:17 PM






That's a pgadmin bug; please report it to them.

On Tue, Nov 14, 2006 at 03:42:53PM +0000, scoanda wrote:
Quote:
The following bug has been logged online:

Bug reference: 2758
Logged by: scoanda
Email address: sabin.coanda (AT) deuromedia (DOT) ro
PostgreSQL version: 8.1.4
Operating system: Windows XP sp2
Description: missing quotes in SQL sentence
Details:

I set the transaction isolation level for an user with
ALTER ROLE <user> SET default_transaction_isolation='read committed';

In pgAdmin I get the sentence without quotes:
ALTER ROLE <user> SET default_transaction_isolation=read committed;

This doesn't work if I copy/paste to SQL Query window.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

--
Jim Nasby jim (AT) nasby (DOT) net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
  #3  
Old   
Dave Page
 
Posts: n/a

Default Re: [BUGS] BUG #2758: missing quotes in SQL sentence - 11-14-2006 , 01:42 PM



No, it's the intended behaviour. pgAdmin doesn't have any idea how you want to quote SET values, so it leaves it to you to add them.

Regards, Dave

Quote:
------- Original Message -------
From: "Jim C. Nasby" <jim (AT) nasby (DOT) net
To: scoanda <sabin.coanda (AT) deuromedia (DOT) ro
Sent: 14/11/06, 19:15:59
Subject: Re: [BUGS] BUG #2758: missing quotes in SQL sentence

That's a pgadmin bug; please report it to them.

On Tue, Nov 14, 2006 at 03:42:53PM +0000, scoanda wrote:

The following bug has been logged online:

Bug reference: 2758
Logged by: scoanda
Email address: sabin.coanda (AT) deuromedia (DOT) ro
PostgreSQL version: 8.1.4
Operating system: Windows XP sp2
Description: missing quotes in SQL sentence
Details:

I set the transaction isolation level for an user with
ALTER ROLE <user> SET default_transaction_isolation='read committed';

In pgAdmin I get the sentence without quotes:
ALTER ROLE <user> SET default_transaction_isolation=read committed;

This doesn't work if I copy/paste to SQL Query window.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


--
Jim Nasby jim (AT) nasby (DOT) net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate


Reply With Quote
  #4  
Old   
Peter Eisentraut
 
Posts: n/a

Default Re: [BUGS] BUG #2758: missing quotes in SQL sentence - 11-14-2006 , 03:56 PM



Dave Page wrote:
Quote:
No, it's the intended behaviour. pgAdmin doesn't have any idea how
you want to quote SET values, so it leaves it to you to add them.
Just quote them all.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
  #5  
Old   
Dave Page
 
Posts: n/a

Default Re: [BUGS] BUG #2758: missing quotes in SQL sentence - 11-15-2006 , 02:29 AM



Peter Eisentraut wrote:
Quote:
Dave Page wrote:
No, it's the intended behaviour. pgAdmin doesn't have any idea how
you want to quote SET values, so it leaves it to you to add them.

Just quote them all.
Doesn't work:

scratch=# set search_path = '"MyNameSpace1", "MyNameSpace2"';
ERROR: schema ""MyNameSpace1", "MyNameSpace2"" does not exist

That one must be unquoted:

scratch=# set search_path = "MyNameSpace1", "MyNameSpace2";
SET

Regards, Dave.


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.