src/hg/encode/encodeValidate/doEncodeValidate.pl 1.212

1.212 2010/01/08 22:11:25 braney
check for table existence using tableExists instead of looking in trackDb
Index: src/hg/encode/encodeValidate/doEncodeValidate.pl
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/encodeValidate/doEncodeValidate.pl,v
retrieving revision 1.211
retrieving revision 1.212
diff -b -B -U 4 -r1.211 -r1.212
--- src/hg/encode/encodeValidate/doEncodeValidate.pl	7 Jan 2010 23:30:05 -0000	1.211
+++ src/hg/encode/encodeValidate/doEncodeValidate.pl	8 Jan 2010 22:11:25 -0000	1.212
@@ -1850,9 +1850,9 @@
         dieTellWrangler("System Error: identical tableName '$tableName' was generated by multiple data sets\n");
     }
 
     if(!$opt_allowReloads) {
-        if($db->quickQuery("select count(*) from trackDb where tableName = ?", $tableName)) {
+        if ($db->tableExist( $tableName)) {
             die "view '$view' has already been loaded as track '$tableName'\nPlease contact your wrangler if you need to reload this data\n";
         }
     }