Revision 1876
branches/gvSIG_GisPlanet/applications/appgvSIG/src/com/iver/cit/gvsig/Abrir.java | ||
---|---|---|
256 | 256 |
// TODO: ?C?mo se hace esto para que sea gen?rico?. |
257 | 257 |
// Supongo que el wizard te tiene que decir qu? driver |
258 | 258 |
// quieres usar.... |
259 |
Class.forName("org.postgresql.Driver"); |
|
260 |
Class.forName("com.mysql.jdbc.Driver"); |
|
259 |
// Class.forName("org.postgresql.Driver");
|
|
260 |
// Class.forName("com.mysql.jdbc.Driver");
|
|
261 | 261 |
Connection conn = DriverManager.getConnection(dbURL, user, pwd); |
262 | 262 |
conn.setAutoCommit(false); |
263 | 263 |
|
... | ... | |
276 | 276 |
} catch (SQLException e) { |
277 | 277 |
// TODO Auto-generated catch block |
278 | 278 |
e.printStackTrace(); |
279 |
} catch (ClassNotFoundException e) { |
|
279 |
/* } catch (ClassNotFoundException e) {
|
|
280 | 280 |
// TODO Auto-generated catch block |
281 |
e.printStackTrace(); |
|
281 |
e.printStackTrace(); */
|
|
282 | 282 |
} catch (DriverLoadException e) { |
283 | 283 |
e.printStackTrace(); |
284 | 284 |
} |
branches/gvSIG_GisPlanet/applications/appgvSIG/src/com/iver/cit/gvsig/gui/jdbcwizard/Wizard.java | ||
---|---|---|
326 | 326 |
String[] fields = getFields(); |
327 | 327 |
for (int i = 0; i < fields.length; i++) { |
328 | 328 |
if (fields[i].equals(uniqueFieldSelection.getField())){ |
329 |
return i; |
|
329 |
return i+1;
|
|
330 | 330 |
} |
331 | 331 |
} |
332 | 332 |
|
Also available in: Unified diff