Re: Patch for jdbc2 ResultSet.java

From: Dave Harkness <daveh(at)MEconomy(dot)com>
To: Joseph Shraibman <jks(at)selectacast(dot)net>, Barry Lind <barry(at)xythos(dot)com>, pgsql-patches(at)postgresql(dot)org
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Patch for jdbc2 ResultSet.java
Date: 2001-09-06 02:57:00
Message-ID: 5.1.0.14.2.20010905195252.045d8158@mail.meconomy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

At 12:41 PM 9/5/2001, Joseph Shraibman wrote:
>new patch:

There still seems to be an error with the same if-block.

! if (index>=-rows.size())
! internalIndex=rows.size()+index;

becomes

! if (index > -rows_size)
! internalIndex = rows_size+index;

Note that the original used >=, not >.

Also, why is the first edit being done? Granted it's faster in that it
doesn't null out the array of rows, but won't that have other effects? I'm
not very familiar with the code, so pardon if I'm off base on that.

//release resources held (memory for tuples)
if(rows!=null) {
- rows.setSize(0);
rows=null;
}

Peace,
Dave

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-09-06 03:11:29 Re: JDBC Statement.executeBatch patch
Previous Message Dave Cramer 2001-09-06 00:40:42 Re: Read transactions don't work on 7.0.x db's 3rd attempt

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-09-06 03:11:29 Re: JDBC Statement.executeBatch patch
Previous Message Bruce Momjian 2001-09-06 02:56:42 Re: Patch for pl/tcl Tcl_ExternalToUtf and Tcl_UtfToExternal