Re: Call sql function in psql

From: Abhra Kar <abhra(dot)kar(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Call sql function in psql
Date: 2018-01-19 06:58:56
Message-ID: CAFNULEcaM_GmATjwT=xFgKWvY-3QNgA23+w6v3nOguDXmAy2Kw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks

On Thu, Jan 18, 2018 at 10:01 PM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Thu, Jan 18, 2018 at 9:22 AM, Abhra Kar <abhra(dot)kar(at)gmail(dot)com> 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.
> ​
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2018-01-19 11:33:03 pgaudit?
Previous Message Tom Lane 2018-01-19 03:49:42 Re: warning for subquery that references a table but not its columns