From: Abhra Kar <abhra.kar@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: stored procedure call is not working with "select procedure()" option
Date: Tue, 20 Feb 2018 12:43:34 +0530
Message-ID: <CAFNULEcotbRuGwe0vKo2fb0_qzp6pcG-BdC1CuvdpJne2cT38Q@mail.gmail.com> (raw)
Hi ,
I have a stored procedure name "procedure()". Which I am calling
by --
Session sess = (Session)entityManager.getDelegate(); //entityManager is
javax.persistent.EntityManager[ Properly Initialise]
sess.createSQLQuery("select procedure()");
procedure is containing some truncate queries like -- EXECUTE('truncate
table abc');
It's not throwing any exception but not executing the procedure.Using
oracle query -- sess.createSQLQuery("{ call procedure()
}").executeUpdate(); procedure execution is working fine.
What's need to be change here.
Thanks and Regards,
Abhra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: abhra.kar@gmail.com
Subject: Re: stored procedure call is not working with "select procedure()" option
In-Reply-To: <CAFNULEcotbRuGwe0vKo2fb0_qzp6pcG-BdC1CuvdpJne2cT38Q@mail.gmail.com>
References: <CAFNULEcotbRuGwe0vKo2fb0_qzp6pcG-BdC1CuvdpJne2cT38Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox