Thread: tiny Bug: execute NO query => wrong message

tiny Bug: execute NO query => wrong message

From
"Marc Mamin"
Date:
<p dir="LTR"><span lang="de"></span><p dir="LTR"><span lang="de"></span><span lang="en-us"><font
face="Calibri">Hello,</font></span><spanlang="de"></span><span lang="en-us"></span><p dir="LTR"><span
lang="de"></span><spanlang="en-us"></span><p dir="LTR"><span lang="en-us"><font face="Calibri">I've just found this on
1.16</font></span><spanlang="de"></span><span lang="en-us"><font face="Calibri">.0 / Windows</font></span><span
lang="de"></span><spanlang="en-us"><font face="Calibri">:</font></span><p dir="LTR"><span lang="en-us"><font
face="Calibri">selectan empty statement,  e.g.  </font></span><span lang="de"></span><span lang="en-us"> <font
face="Calibri">/*  */;</font></span><span lang="de"></span><span lang="en-us"><font face="Calibri">  
and</font></span><spanlang="de"></span><span lang="en-us"> <font face="Calibri">try to execute it.</font></span><span
lang="de"></span><spanlang="en-us"></span><p dir="LTR"><span lang="en-us"><font face="Calibri">this will pop up the
messa</font></span><spanlang="de"></span><span lang="en-us"><font face="Calibri">ge "Connection lost" although it is
still</font></span><spanlang="de"></span><span lang="en-us"> <font face="Calibri">valid (according to
pg_stat_activity).</font></span><pdir="LTR"><span lang="en-us"><font face="Calibri">best regards,</font></span><p
dir="LTR"><spanlang="en-us"><font face="Calibri">Marc Mamin</font></span><span lang="de"></span><span
lang="en-us"></span>

Re: tiny Bug: execute NO query => wrong message

From
Guillaume Lelarge
Date:
On Wed, 2012-09-12 at 11:01 +0200, Marc Mamin wrote:
> Hello,
> 
> I've just found this on 1.16.0 / Windows:
> select an empty statement,  e.g.   /*   */;   and try to execute it.
> 
> this will pop up the message "Connection lost" although it is still
> valid (according to pg_stat_activity).
> 

Nice bug :)

I've fixed it. It'll be available in 1.16.1.

Thanks for your report.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com