Re: Simple question about running a function.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: SQL Padawan <sql_padawan(at)protonmail(dot)com>
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Simple question about running a function.
Date: 2021-11-26 18:39:33
Message-ID: CAKFQuwYdtpMZZUXXy9j+jJ0VHEtTawHESw6p5H+Dac7dUt4JnA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Friday, November 26, 2021, SQL Padawan <sql_padawan(at)protonmail(dot)com>
wrote:

>
> ERROR: query has no destination for result data
> HINT: If you want to discard the results of a SELECT, use PERFORM instead.
> CONTEXT: PL/pgSQL function test_fn_6() line 6 at SQL statement
> SQL statement "SELECT test_fn_6()"
> PL/pgSQL function inline_code_block line 3 at PERFORM
>
>
Keep reading this error message until you get it. K is telling you exactly
what, where, and how to fix your problem.

David J.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Greg Rychlewski 2021-12-09 01:07:07 Table-Level Locks and Transactions
Previous Message David G. Johnston 2021-11-26 18:36:40 Re: Simple question about running a function.