Revision 20058 trunk/libraries/libDataSourceDBBaseDrivers/src/org/gvsig/data/datastores/vectorial/db/jdbc/postgresqlbin/PostgresqlBinFeatureCollection.java

View differences:

PostgresqlBinFeatureCollection.java
169 169
				mSql="BEGIN";
170 170
				st.execute(mSql);
171 171
				mSql="declare " + this.cursorName + " binary cursor for " + this.sql;
172
				st.execute("declare " + cursorName + " binary cursor for " + sql);
172
				st.execute("msql");
173 173
//				System.out.println(mSql);
174 174

  
175 175

  
......
243 243
				IFeature feature=null;
244 244
				try {
245 245
					if(rs.next()){
246
						feature = PostgresqlBinStoreUtils.createFeatureFromBinaryCursor(this.store, this.rs, this.featureType);
246
						feature = this.store.createFeatureFromResulset(this.rs, this.featureType);
247 247
					} else {
248 248
						this.close();
249 249
						throw new NoSuchElementException();

Also available in: Unified diff