src/hg/instinct/bioInt2/populateDb.c 1.5
1.5 2009/03/27 21:56:27 jsanborn
updated
Index: src/hg/instinct/bioInt2/populateDb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/bioInt2/populateDb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/instinct/bioInt2/populateDb.c 24 Mar 2009 05:21:54 -0000 1.4
+++ src/hg/instinct/bioInt2/populateDb.c 27 Mar 2009 21:56:27 -0000 1.5
@@ -381,16 +381,16 @@
char query[256];
safef(query, sizeof(query),
"select DISTINCT %s from %s where %s = \"%s\";",
- SA_TABLE, idField, sField, name);
+ idField, SA_TABLE, sField, name);
if (sqlExists(biConn, query)) /* sample name found, use same id */
return sqlQuickNum(biConn, query);
/* Else, find maximum sample id and add one to it */
safef(query, sizeof(query),
"select max(%s) from %s;",
- SA_TABLE, idField);
+ idField, SA_TABLE);
int maxId = sqlQuickNum(biConn, query);
return maxId + 1;
}