src/utils/raSqlQuery/raSqlQuery.c 1.18
1.18 2009/11/22 02:04:06 kent
Adding a little more error checking to command line.
Index: src/utils/raSqlQuery/raSqlQuery.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/raSqlQuery/raSqlQuery.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -b -B -U 4 -r1.17 -r1.18
--- src/utils/raSqlQuery/raSqlQuery.c 22 Nov 2009 02:01:30 -0000 1.17
+++ src/utils/raSqlQuery/raSqlQuery.c 22 Nov 2009 02:04:06 -0000 1.18
@@ -475,8 +475,10 @@
errAbort("Please specify either the query or queryFile option.");
if (clQueryFile != NULL && clQuery != NULL)
errAbort("Please specify just one of the query or queryFile options.");
struct lm *lm = lmInit(0);
+if (clStrict && clDb == NULL)
+ errAbort("Only can use -strict with -db.");
if (clDb != NULL)
{
clMerge = TRUE;