Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance. - Mailing list pgsql-jdbc

From David Johnston
Subject Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.
Date
Msg-id 1394500967424-5795476.post@n5.nabble.com
Whole thread Raw
In response to Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.  (Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>)
Responses Re: Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Naoya Anzai wrote
> Hi Dave,
>
> Thanks for your response.
>
>> Thanks for the patch! Curious how would you ever come across this ?
>
> This incident was reported by one of our customers.
> So I don't know why their application executes EMPTY_QUERY frequently...
>
> Regards,

The most obvious reason would be as a keep-alive query...I have no idea
whether that is a wise decision compared to "SELECT 1;" or something that
actually causes the server to perform work (i.e., what does the server do
when it see the empty-string as input?).

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/A-prepared-statement-ERROR-due-to-EMPTY-QUERY-is-defined-as-a-static-Instance-tp5795067p5795476.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


pgsql-jdbc by date:

Previous
From: Naoya Anzai
Date:
Subject: Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.
Next
From: "Moran, William"
Date:
Subject: Re: JDBC/TIMESTAMP/infnity question