From: <azu...@us...> - 2008-07-29 15:40:59
|
Revision: 1925 http://obo.svn.sourceforge.net/obo/?rev=1925&view=rev Author: azurebrd Date: 2008-07-29 15:41:08 +0000 (Tue, 29 Jul 2008) Log Message: ----------- was making pgdbid based on int_name, but a lot of data goes in without names, so using curator, since everything should have a curator. but possibly that's not true ? Modified Paths: -------------- phenote/trunk/src/java/phenote/dataadapter/worm/WormInteractionAdapter.java Modified: phenote/trunk/src/java/phenote/dataadapter/worm/WormInteractionAdapter.java =================================================================== --- phenote/trunk/src/java/phenote/dataadapter/worm/WormInteractionAdapter.java 2008-07-28 15:21:37 UTC (rev 1924) +++ phenote/trunk/src/java/phenote/dataadapter/worm/WormInteractionAdapter.java 2008-07-29 15:41:08 UTC (rev 1925) @@ -176,7 +176,7 @@ // Integer joinkeyInt = Integer.parseInt(pgdbid); // this can't do anything since pgdbid must be blank Integer joinkeyInt = 0; ResultSet rs = null; - try { rs = s.executeQuery("SELECT joinkey FROM int_name "); } + try { rs = s.executeQuery("SELECT joinkey FROM int_curator "); } catch (SQLException se) { System.out.println("We got an exception while executing our int_name query: that probably means our column SQL is invalid"); se.printStackTrace(); errorPopup("commit SELECT int_name"); return ; } try { while (rs.next()) { if (rs.getInt(1) > joinkeyInt) { joinkeyInt = rs.getInt(1); } } joinkeyInt++; joinkey = Integer.toString(joinkeyInt); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |