CRecordset::Open postgresql procedure call don't work - Mailing list pgsql-general

From jeanclaude marzin
Subject CRecordset::Open postgresql procedure call don't work
Date
Msg-id 1528486456.1414195.1563182837204@wsfrf1420
Whole thread Raw
Responses Re: CRecordset::Open postgresql procedure call don't work
Re: CRecordset::Open postgresql procedure call don't work
List pgsql-general
‌Hi
I migrate from MSSQL to postgresql 11. I translate MSSQL stored procedure to Postgresql one :


CREATE PROCEDURE procacp ()
LANGUAGE SQL
AS $$
SELECT tabjdbexploit.jdbeid, tabjdbexploit.jdbeproc,
    tabjdbexploit.jdbedate, tabjdbexploit.jdbetypemsg,
    tabjdbexploit.jdbeurg, tabjdbexploit.jdbeconfid,
    tabjdbexploit.jdbeetat, tabmsgacp.acpid,  
    tabmsgacp.acpnumserie,
    tabmsgacp.acpsignserv, tabmsgacp.acpnumligne,
    tabmsgacp.acpiaorigine, tabmsgacp.acpgdh,
    tabmsgacp.acperv,  tabmsgacp.acpcdu,
    tabmsgacp.acpdir, tabmsgacp.acppere,
    tabmsgacp.acpcomplement, tabmsgacp.acpsection

FROM tabjdbexploit INNER JOIN
    tabmsgacp ON tabjdbexploit.jdbeid = tabmsgacp.acpid

ORDER BY tabjdbexploit.jdbedate ASC
$$;


All seems OK in PgAdmin 4, procedure is created

I use ODBC and Crecorset in C++

When i use the ca
ll strSQL = "{CALL procacp()}". It don't work :

Message error : ERROR: procacp() is a procedure

I don't know what to do

Thanks in advance for any assistance

Jean-Claude

pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: How to run a task continuously in the background
Next
From: Fabio Pardi
Date:
Subject: Re: help understanding pgbench results