Re: [GENERAL] back slash separated values

2006-03-22 Thread surabhi.ahuja
Title: Re: [GENERAL] back slash separated values SHOW server_version; server_version 8.0.6(1 row)   the stored procedure is :   CREATE OR REPLACE FUNCTION update_exam_modality(bigint, varchar(16)) RETURNS text AS'DECLARE    mod_of_study varchar(16);    mod_pa

Re: [GENERAL] back slash separated values

2006-03-22 Thread Tom Lane
"surabhi.ahuja" <[EMAIL PROTECTED]> writes: > mod_pattern := mod_of_study || ''\\'' || $2; If this is in a function body, you need four backslashes not two, for the same reason that you need to double the quote marks: one level of quotes and backslashes is eaten when the function body is parsed a

Re: [GENERAL] back slash separated values

2006-03-22 Thread William ZHANG
What's the version of pgsql? postgres=# show server_version; server_version 8.1.0 (1 row) postgres=# CREATE OR REPLACE FUNCTION foo (v_s1 varchar, v_s2 varchar) postgres-# RETURNS varchar AS $$ postgres$# BEGIN postgres$# RETURN v_s1 || '\\' || v_s2; postgres$# END; postgre

[GENERAL] back slash separated values

2006-03-22 Thread surabhi.ahuja
mod_pattern := mod_of_study || ''\\'' ||  $2;   is giving me syntax error, please tell how i can concat a backslah cgaracter.   Thanks, regards Surabhi