Re: quote_ident and schemas (was Re: [HACKERS] connectby with schema)

2002-11-23 Thread Masaru Sugawara
On Fri, 22 Nov 2002 15:21:48 -0800 Joe Conway <[EMAIL PROTECTED]> wrote: > OK. Attached patch removes calls within the function to quote_ident, requiring > the user to appropriately quote their own identifiers. I also tweaked the > regression test to deal with "value" becoming a reserved word. >

Re: quote_ident and schemas (was Re: [HACKERS] connectby with schema)

2002-11-22 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Joe Conway wrote: >> Is quote_ident_required incorrectly dealing with schemas? > Sorry to reply to myself, but another related question; shouldn't the > following produce "Ms"."Test"? > test=# select quote_ident('Ms.Test'); > quote_ident > -

Re: quote_ident and schemas (was Re: [HACKERS] connectby with schema)

2002-11-22 Thread Stephan Szabo
On Fri, 22 Nov 2002, Joe Conway wrote: > Masaru Sugawara wrote: > > CREATE SCHEMA ms; > > CREATE TABLE ms.test (id int4, parent_id int4, t text); > > INSERT INTO ms.test VALUES(11, null, 'aaa'); > > INSERT INTO ms.test VALUES(101, 11, 'bbb'); > > INSERT INTO ms.test VALUES(110, 11, 'ccc'); > > INS

Re: quote_ident and schemas (was Re: [HACKERS] connectby with schema)

2002-11-22 Thread Joe Conway
Joe Conway wrote: Is quote_ident_required incorrectly dealing with schemas? Sorry to reply to myself, but another related question; shouldn't the following produce "Ms"."Test"? test=# select quote_ident('Ms.Test'); quote_ident - "Ms.Test" (1 row) Joe

quote_ident and schemas (was Re: [HACKERS] connectby with schema)

2002-11-22 Thread Joe Conway
Masaru Sugawara wrote: CREATE SCHEMA ms; CREATE TABLE ms.test (id int4, parent_id int4, t text); INSERT INTO ms.test VALUES(11, null, 'aaa'); INSERT INTO ms.test VALUES(101, 11, 'bbb'); INSERT INTO ms.test VALUES(110, 11, 'ccc'); INSERT INTO ms.test VALUES(111, 110, 'ddd'); SELECT * FROM connectb