d983323cd2570af1cf3971763d14ef2d88c06fe4
jcasper
  Wed Feb 19 17:00:19 2025 -0800
sqlTableSize needs to support tables with more than 2B rows (rarely, but it does), refs #35262

diff --git src/hg/hgTablesTest/hgTablesTest.c src/hg/hgTablesTest/hgTablesTest.c
index 476eca0046a..f2a6474f190 100644
--- src/hg/hgTablesTest/hgTablesTest.c
+++ src/hg/hgTablesTest/hgTablesTest.c
@@ -200,31 +200,31 @@
 /* Submit page, replacing old page with new one. */
 {
 struct htmlPage *oldPage = *pPage;
 if (oldPage != NULL)
     {
     *pPage = quickSubmit(oldPage, org, db, group, track, table,
     	testName, button, buttonVal);
     htmlPageFree(&oldPage);
     }
 }
 
 int tableSize(char *db, char *table)
 /* Return number of rows in table. */
 {
 struct sqlConnection *conn = sqlConnect(db);
-int size = sqlTableSize(conn, table);
+long size = sqlTableSize(conn, table);
 sqlDisconnect(&conn);
 return size;
 }
 
 void showConnectInfo(char *db)
 /* Show connection info used by this program. */
 {
 struct sqlConnection *conn = sqlConnect(db);
 char query[1024];
 sqlSafef(query, sizeof query, "select current_user()");
 char *user = sqlQuickString(conn, query);
 char *hostinfo = sqlHostInfo(conn);
       verbose(1, "Connecting as %s to database server %s\n", user, hostinfo);
 fprintf(logFile, "Connecting as %s to database server %s\n", user, hostinfo); fflush(logFile);
 sqlDisconnect(&conn);