General Bug Report: statement.executeUpdate returns the wrong value - Mailing list pgsql-bugs

From Unprivileged user
Subject General Bug Report: statement.executeUpdate returns the wrong value
Date
Msg-id 199812222224.RAA17086@hub.org
Whole thread Raw
List pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        : Yaoshiang Ho
Your email address    : yaosh@henchmen.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.

--------------------------------------------------------------------------


pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Failures with arrays
Next
From: andrea@acefinancial.org
Date:
Subject: ...