Re: Concatenating strings within a function definition - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Concatenating strings within a function definition
Date
Msg-id 28187.1099596762@sss.pgh.pa.us
Whole thread Raw
In response to Concatenating strings within a function definition  (Nishad Prakash <prakashn@uci.edu>)
List pgsql-bugs
Nishad Prakash <prakashn@uci.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

pgsql-bugs by date:

Previous
From: Nishad Prakash
Date:
Subject: Concatenating strings within a function definition
Next
From: Jaime Casanova
Date:
Subject: a bug in plpgsql