15e3b954bc1a8ba6e4ced1c4da0670739ca62760
braney
  Thu Feb 11 21:26:24 2016 -0800
allow for database.table format to be used in sqlGetField().  #16809

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 46111c4..84ba68e 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -4688,32 +4688,32 @@
 return &st;
 }
 
 char *sqlGetField(char *db, char *tblName, char *fldName,
   	          char *condition)
 /* Return a single field from the database, table name, field name, and a
    condition string */
 {
 struct sqlConnection *conn = hAllocConn(db);
 char query[256];
 struct sqlResult *sr;
 char **row;
 char *answer;
 
 answer = NULL;
-sqlSafef(query, sizeof(query), "select %s from %s.%-s  where %-s;",
-      fldName, db, sqlCheckIdentifiersList(tblName), condition);  // note some callers pass an entire tables list with aliases in tblName
+sqlSafef(query, sizeof(query), "select %s from %-s  where %-s;",
+      fldName,  sqlCheckIdentifiersList(tblName), condition);  // note some callers pass an entire tables list with aliases in tblName
 sr  = sqlGetResult(conn, query);
 row = sqlNextRow(sr);
 
 if (row != NULL)
     {
     answer = cloneString(row[0]);
     }
 
 sqlFreeResult(&sr);
 hFreeConn(&conn);
 return answer;
 }
 
 struct hash *hChromSizeHash(char *db)
 /* Get hash of chromosome sizes for database.  Just hashFree it when done. */