Re: PQprepare & Stored Proces & OUT parameters

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "Ruslan R(dot) Laishev" <zator(at)yandex(dot)ru>
Cc: pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: PQprepare & Stored Proces & OUT parameters
Date: 2017-10-18 16:26:02
Message-ID: CAKFQuwZksd+WM3nbxUd2zdxM0qr235kbN5T0YhWHkDsLBdsn=w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, Oct 18, 2017 at 9:01 AM, Ruslan R. Laishev <zator(at)yandex(dot)ru> wrote:

> No errors if p_stv and p_msg has been declared as IN. So , what I'm need
> to check ?
>

​Input parameters are parameters you have to provide when calling a
function.

SELECT * FROM func($1, $2, $3) is a function that has three input
parameters.​

CREATE OR REPLACE FUNCTION __z$z (
p_compid uuid,
out p_stv integer,
out p_msg text
)

Is a function that has one input parameter. It would be called like:
select p_stv, p_msg FROM func($1)

David J.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Ruslan R. Laishev 2017-10-20 09:03:09 Fwd: PQprepare & Stored Proces & OUT parameters - Volume II
Previous Message Ruslan R. Laishev 2017-10-18 16:01:59 PQprepare & Stored Proces & OUT parameters