5d724744d7a2968a07174d4b6c0a835ae82c3045 galt Wed Jan 17 14:50:24 2018 -0800 fixed typo in comment diff --git src/hg/lib/jksql.c src/hg/lib/jksql.c index 3bfeeb1..b69f1a2 100644 --- src/hg/lib/jksql.c +++ src/hg/lib/jksql.c @@ -1880,31 +1880,31 @@ if (res == NULL) errAbort("Object not found in database.\nQuery was %s", query); return res; } void sqlUpdate(struct sqlConnection *conn, char *query) /* Tell database to do something that produces no results table. */ { struct sqlResult *sr; sr = sqlGetResult(conn,query); sqlFreeResult(&sr); } int sqlUpdateRows(struct sqlConnection *conn, char *query, int* matched) -/* Execute an update query, returning the number of rows change. If matched +/* Execute an update query, returning the number of rows changed. If matched * is not NULL, it gets the total number matching the query. */ { int numChanged = 0; int numMatched = 0; const char *info; int numScan = 0; struct sqlResult *sr = sqlGetResult(conn,query); /* Rows matched: 40 Changed: 40 Warnings: 0 */ monitorEnter(); info = mysql_info(conn->conn); monitorLeave(); if (info != NULL) numScan = sscanf(info, "Rows matched: %d Changed: %d Warnings: %*d", &numMatched, &numChanged);