0269ef320178f4be922a1bac45dc238aefbbd250 galt Thu Jun 21 19:10:04 2012 -0700 making mysql like match on space, the word-boundary in the dbs field so db wont accidentally match another db of which it is a substring diff --git src/hg/qaPushQ/qaPushQ.c src/hg/qaPushQ/qaPushQ.c index e6e4d89..42d251e 100644 --- src/hg/qaPushQ/qaPushQ.c +++ src/hg/qaPushQ/qaPushQ.c @@ -3423,33 +3423,41 @@ sqlFreeResult(&sr); slReverse(&kiList); sqlDisconnect(&betaconn); // are we really only allowed one remoteconn at a time? conn = sqlConnectRemote(host, user, password, database); /* filter the db list to make sure we actually have data */ struct dbDb *newList=NULL, *kiNext; for (ki = kiList; ki != NULL; ki = kiNext) { kiNext = ki->next; safef(query,sizeof(query), "select count(*) from pushQ " - "where priority='L' and releaseLog != '' and dbs like '%%%s%%' %s" + "where priority='L' and releaseLog != '' and (" + "dbs like '%s' or " + "dbs like '%s %%' or " + "dbs like '%% %s' or " + "dbs like '%% %s %%'" + ") %s" "order by qadate desc, qid desc", ki->name, + ki->name, + ki->name, + ki->name, encodeClause ); if (sqlQuickNum(conn, query) > 0) { slAddHead(&newList, ki); } } slReverse(&newList); kiList = newList; /* 10 Latest Changes */ printf("