Revision 19975 trunk/libraries/libDataSourceDBBaseDrivers/src/org/gvsig/data/datastores/vectorial/db/jdbc/postgresql/PostgresqlFeatureCollection.java
PostgresqlFeatureCollection.java | ||
---|---|---|
24 | 24 |
protected String filter; |
25 | 25 |
protected String totalFilter; |
26 | 26 |
protected JDBCStore store; |
27 |
protected ResultSet rs; |
|
28 | 27 |
private String order; |
29 | 28 |
private int numReg=-1; |
30 | 29 |
private String sql; |
... | ... | |
63 | 62 |
Connection conn = ((PostgresqlStore)this.store).getCurrentConnection(); |
64 | 63 |
try { |
65 | 64 |
Statement st = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY); |
66 |
return rs = st.executeQuery(aSql);
|
|
65 |
return st.executeQuery(aSql); |
|
67 | 66 |
|
68 | 67 |
} catch (java.sql.SQLException e) { |
69 | 68 |
throw new SQLException(aSql,this.store.getName(),e); |
... | ... | |
251 | 250 |
|
252 | 251 |
} |
253 | 252 |
|
253 |
public void dispose() { |
|
254 |
this.store.deleteObserver(this); |
|
255 |
this.store=null; |
|
256 |
this.featureType=null; |
|
257 |
|
|
258 |
} |
|
259 |
|
|
254 | 260 |
} |
Also available in: Unified diff