Some minor modifications to database files

This commit is contained in:
2020-09-15 15:00:58 +01:00
parent 3c2742a214
commit 69340c25e8
7 changed files with 22 additions and 15 deletions

View File

@@ -57,12 +57,18 @@ uint64_t scalarQuery(struct stored_conn_t *sconn, const char *qry, size_t qry_le
return (uint64_t)-1;
}
if (n_row > 1) {
fprintf(stderr, "[%d]scalarQuery: WARN: Too many rows in result, only returning first value\n", __LINE__);
fprintf(
stderr, "[%d]scalarQuery: WARN: Too many rows in result, only returning first value\n",
__LINE__
);
}
n_col = mysql_num_fields(result);
if (n_col > 1) {
fprintf(stderr, "[%d]scalarQuery: WARN: Too many columns in result, only returning first value\n", __LINE__);
fprintf(
stderr, "[%d]scalarQuery: WARN: Too many columns in result, only returning first value\n",
__LINE__
);
}
row = mysql_fetch_row(result);