Skip site navigation (1) Skip section navigation (2)

Re: Concatenating strings within a function definition

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nishad(at)ptolemy(dot)tlg(dot)uci(dot)edu
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Concatenating strings within a function definition
Date: 2004-11-04 19:32:42
Message-ID: 28187.1099596762@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Nishad Prakash <prakashn(at)uci(dot)edu> writes:
> I'm trying to create a function like so:

> create function get_lid_prefix (text) returns setof int as
> 'select lid from ilemma where lemma ~ \'^\' + upper($1)'
> language 'sql';

'select lid from ilemma where lemma ~ (\'^\' || upper($1))'

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Jaime CasanovaDate: 2004-11-04 19:37:14
Subject: a bug in plpgsql
Previous:From: Nishad PrakashDate: 2004-11-04 19:18:56
Subject: Concatenating strings within a function definition

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group