Re: [GENERAL] to_char problem

2004-06-03 Thread Richard Huxton
On Monday 16 February 2004 19:15, Wei Wang wrote: > I get compile error for this code: > > > for i in 1..arg_count-1 LOOP > RAISE NOTICE quote_literal(to_char(i, ''9'')); > END LOOP; > > where arg_count = 3. > > I tried RAISE NOTICE to_char(i, ''9''); as well. > to_char returns text, right? Then w

Re: [GENERAL] to_char problem

2004-02-17 Thread Richard Huxton
On Tuesday 17 February 2004 12:37, Wei Wang wrote: > In that case, how do I RAISE NOTICE a text variable such as: > DECLARE tempstring text; > BEGIN > RAISE NOTICE tempstring; RAISE NOTICE ''%'',tempstring; Don't forget to double-up (or bacslash-escape) your quotes. -- Richard Huxton Archon

Re: [GENERAL] to_char problem

2004-02-17 Thread Wei Wang
TECTED]> Sent: Monday, February 16, 2004 8:24 PM Subject: Re: [GENERAL] to_char problem > On Monday 16 February 2004 19:15, Wei Wang wrote: > > I get compile error for this code: > > > > > > for i in 1..arg_count-1 LOOP > > RAISE NOTICE quote_literal(to_char(i,