Search Postgresql Archives

stored procedure call is not working with "select procedure()" option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux