Revision 41485 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc/JDBCStoreProviderWriter.java

View differences:

JDBCStoreProviderWriter.java
153 153
							st.setObject(i + 1, values.get(i));
154 154
						}
155 155
						try {
156
							int nAffected =st.executeUpdate();
156
							int nAffected =JDBCHelper.executeUpdate(st);
157 157
							if (nAffected == 0) {
158 158
								throw new JDBCUpdateWithoutChangesException(sql, values);
159 159
							}
......
195 195
							st.setObject(i + 1, values.get(i));
196 196
						}
197 197
						try {
198
							if (st.executeUpdate() == 0) {
198
							if ( JDBCHelper.executeUpdate(st) == 0) {
199 199
								throw new JDBCUpdateWithoutChangesException(sql, values);
200 200
							}
201 201
						} catch (SQLException e) {
......
391 391
			throw new JDBCSQLException(e1);
392 392
		}
393 393
		try {
394
			st.execute(sql);
394
			JDBCHelper.execute(st, sql);
395 395
			Iterator<String> iter = additionalStatement.iterator();
396 396
			while (iter.hasNext()) {
397 397
				sql = (String) iter.next();
398
				st.execute(sql);
398
                                JDBCHelper.execute(st, sql);
399 399
			}
400 400
		} catch (SQLException e1) {
401 401
			throw new JDBCExecuteSQLException(sql, e1);
......
430 430
						sql, values });
431 431
			}
432 432
			try {
433
				insertSt.execute();
433
                                JDBCHelper.execute(insertSt, sql);
434 434
			} catch (SQLException e) {
435 435
				throw new JDBCExecutePreparedSQLException(sql, values, e);
436 436
			}

Also available in: Unified diff