src/hg/lib/hdb.c 1.416

1.416 2009/10/07 19:04:01 hiram
use sqlTableExists() in place of hTableExists() to avoid custom track bottleneck
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.415
retrieving revision 1.416
diff -b -B -U 4 -r1.415 -r1.416
--- src/hg/lib/hdb.c	28 Sep 2009 19:00:34 -0000	1.415
+++ src/hg/lib/hdb.c	7 Oct 2009 19:04:01 -0000	1.416
@@ -2897,21 +2897,21 @@
     {
     if (chrom != NULL)
 	{
 	safef(fullName, sizeof(fullName), "%s_%s", chrom, rootName);
-	if (hTableExists(db, fullName))
+	if (sqlTableExists(conn, fullName))
 	    isSplit = TRUE;
 	}
     if (!isSplit)
         {
 	safef(fullName, sizeof(fullName), "%s", rootName);
-	if (!hTableExists(db, fullName))
+	if (!sqlTableExists(conn, fullName))
 	    {
 	    if (sameString(rootName, "mrna") || sameString(rootName, "est"))
 	        {
 		safef(fullName, sizeof(fullName), "all_%s", rootName);
 		rootName = fullName;
-		if (!hTableExists(db, rootName))
+		if (!sqlTableExists(conn, rootName))
 		    return NULL;
 		}
 	    else
 		return NULL;