| From: | Unprivileged user <nobody> | 
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org | 
| Subject: | General Bug Report: statement.executeUpdate returns the wrong value | 
| Date: | 1998-12-22 22:24:06 | 
| Message-ID: | 199812222224.RAA17086@hub.org | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-bugs | 
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name		: Yaoshiang Ho
Your email address	: yaosh(at)henchmen(dot)com
Category		: runtime: front-end: Java
Severity		: serious
Summary: statement.executeUpdate returns the wrong value
System Configuration
--------------------
  Operating System   : Linux Redhat 2.036
PostgreSQL version : 6.2
Compiler used : jdk 1.1.17
Hardware:
---------
Celeron 233
Versions of other tools:
------------------------
none.
--------------------------------------------------------------------------
Problem Description:
--------------------
On line 742 of Connection.java, you just stick a 1
in for the updateCount paramter, instead of an accurat
count.  
--------------------------------------------------------------------------
Test Case:
----------
Just try executing the string "create table t as (i int)".
the retval of executeUpdate should be 0, but is 1.
--------------------------------------------------------------------------
Solution:
---------
You will have to look at the client-server protocol and
figure out how to get the row count out.  It is possible : 
psql gives accurate counts.
--------------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | andrea | 1998-12-23 15:13:59 | |
| Previous Message | Bruce Momjian | 1998-12-18 18:06:18 | Re: [HACKERS] Failures with arrays |