Re: My second PL/pgSQL function - minor problem - Mailing list pgsql-novice

From Jasen Betts
Subject Re: My second PL/pgSQL function - minor problem
Date
Msg-id he5opo$3gc$2@reversiblemaps.ath.cx
Whole thread Raw
In response to My second PL/pgSQL function - minor problem  (Thomas Løcke <thomas.granvej6@gmail.com>)
List pgsql-novice
On 2009-11-20, Jasen Betts <jasen@xnet.co.nz> wrote:
> On 2009-11-18, Thomas Løcke <thomas.granvej6@gmail.com> wrote:
>> --001517402ba882fac30478a73b83
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hey all,
>>
>> http://pastebin.com/f1015226d

> your function seems basically equivalent to
>
>  UPDATE users SET lastvisit = now(), visits = visits + 1
>      WHERE username = uname AND password = passwd
>      RETURNING id;
      --------------

should be:
  RETURNING *;

oops.


pgsql-novice by date:

Previous
From: Jasen Betts
Date:
Subject: Re: My second PL/pgSQL function - minor problem
Next
From: Rikard Bosnjakovic
Date:
Subject: Counting booleans for two columns