Skip to content

Commit be28191

Browse files
author
Peter Mount
committed
Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
- Applied patch submitted by John Schutz <schutz@austin.rr.com> that fixed a bug with ANT's SQL functions (not needed for building but nice to have fixed).
1 parent 8fe8fc9 commit be28191

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

src/interfaces/jdbc/CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.uk
2+
- Applied patch submitted by John Schutz <schutz@austin.rr.com> that
3+
fixed a bug with ANT's SQL functions (not needed for building but nice
4+
to have fixed).
5+
16
Thu Jan 18 17:30:00 GMT 2001 peter@retep.org.uk
27
- Added new error message into errors.properties "postgresql.notsensitive"
38
This is used by jdbc2.ResultSet when a method is called that should

src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ public boolean execute(String sql) throws SQLException
281281
*/
282282
public java.sql.ResultSet getResultSet() throws SQLException
283283
{
284-
return result;
284+
if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
285+
return result;
286+
return null;
285287
}
286288

287289
/**

src/interfaces/jdbc/org/postgresql/jdbc2/Statement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ public boolean execute(String sql) throws SQLException
291291
*/
292292
public java.sql.ResultSet getResultSet() throws SQLException
293293
{
294-
return result;
294+
if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
295+
return result;
296+
return null;
295297
}
296298

297299
/**

0 commit comments

Comments
 (0)