Philipp Kraus wrote:
> I have defined a SQL function
>
> CREATE OR REPLACE FUNCTION substancetrivialname(text)
> RETURNS substance
> LANGUAGE 'sql'
> COST 100
> VOLATILE
> AS $BODY$
> select s.* from substancetrivialname n
> join substance s on s.id = n.idsubstance
> w
On Wed, May 16, 2018 at 11:49 AM, Philipp Kraus <
philipp.kr...@tu-clausthal.de> wrote:
> I have tested it on my data and it works also, but that is a little bit
> confusing, because imho setof is >= 0 rows and
> without setof it is [0,1].
​Without setof it will always return exactly 1 row, neve
On 05/16/2018 11:49 AM, Philipp Kraus wrote:
Am 16.05.2018 um 20:40 schrieb Adrian Klaver :
I have tested it on my data and it works also, but that is a little bit confusing,
because imho setof is >= 0 rows and
without setof it is [0,1]. On this I know there exist only one or no record, s
> Am 16.05.2018 um 20:40 schrieb Adrian Klaver :
>
> On 05/16/2018 11:07 AM, Philipp Kraus wrote:
>> Hello,
>> I have defined a SQL function
>> CREATE OR REPLACE FUNCTION substancetrivialname(text)
>> RETURNS substance
>> LANGUAGE 'sql'
>> COST 100
>> VOLATILE
>> AS $BODY$
>> sele
On 05/16/2018 11:07 AM, Philipp Kraus wrote:
Hello,
I have defined a SQL function
CREATE OR REPLACE FUNCTION substancetrivialname(text)
RETURNS substance
LANGUAGE 'sql'
COST 100
VOLATILE
AS $BODY$
select s.* from substancetrivialname n
join substance s on s.id = n.idsub
On Wed, May 16, 2018 at 2:25 PM, Adrian Klaver
wrote:
> On 05/16/2018 11:07 AM, Philipp Kraus wrote:
>
>> Hello,
>>
>> I have defined a SQL function
>>
>> CREATE OR REPLACE FUNCTION substancetrivialname(text)
>> RETURNS substance
>> LANGUAGE 'sql'
>> COST 100
>> VOLATILE
>> AS
On 05/16/2018 11:07 AM, Philipp Kraus wrote:
Hello,
I have defined a SQL function
CREATE OR REPLACE FUNCTION substancetrivialname(text)
RETURNS substance
LANGUAGE 'sql'
COST 100
VOLATILE
AS $BODY$
select s.* from substancetrivialname n
join substance s on s.id = n.idsub
On 05/16/2018 11:07 AM, Philipp Kraus wrote:
Hello,
I have defined a SQL function
CREATE OR REPLACE FUNCTION substancetrivialname(text)
RETURNS substance
LANGUAGE 'sql'
COST 100
VOLATILE
AS $BODY$
select s.* from substancetrivialname n
join substance s on s.id = n.idsub