From: Scott C. <sco...@us...> - 2007-05-24 03:12:17
|
Update of /cvsroot/gmod/apollo/src/java/apollo/dataadapter/chado/jdbc In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv13094/apollo/dataadapter/chado/jdbc Modified Files: JdbcChadoAdapter.java Log Message: my first Apollo commit!!! When there are no gene types defined (for instance, if you wanted to purposely skip all human annotations), the sql command was invalid. Now it just returns when there is nothing in the gene.type_id string is empty before the sql gets a chance to execute. Index: JdbcChadoAdapter.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/dataadapter/chado/jdbc/JdbcChadoAdapter.java,v retrieving revision 1.187 retrieving revision 1.188 diff -C2 -d -r1.187 -r1.188 *** JdbcChadoAdapter.java 20 Apr 2007 19:00:43 -0000 1.187 --- JdbcChadoAdapter.java 24 May 2007 03:12:14 -0000 1.188 *************** *** 1333,1336 **** --- 1333,1339 ---- bufferTypes.append(","); } + if (bufferTypes.length() == 0) { + return; + } String sql = |