Search Postgresql Archives

Re: Call sql function in psql

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

 



Thanks 

On Thu, Jan 18, 2018 at 10:01 PM, David G. Johnston <david.g.johnston@xxxxxxxxx> wrote:
On Thu, Jan 18, 2018 at 9:22 AM, Abhra Kar <abhra.kar@xxxxxxxxx> wrote:


I tried to modify like

 

        sess.createSQLQuery("select reset_all()")


​This part is correct​

 

.executeUpdate();

 

getting error -- org.postgresql.util.PSQLException: A result was returned when none was expected.



​You need execute the above the same way you would execute "SELECT * FROM tbl"; then just ignore the result set that is returned.

David J.


[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