Skip to content

Commit

Permalink
Fix some printf warnings for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 4, 2023
1 parent f6da330 commit 3a64837
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: RMySQL
Version: 0.10.26
Version: 0.10.27
Title: Database Interface and 'MySQL' Driver for R
Description: Legacy 'DBI' interface to 'MySQL' / 'MariaDB' based on old code
ported from S-PLUS. A modern 'MySQL' client written in 'C++' is available
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 0.10.27

* Fix some printf warnings for CRAN

# Version 0.10.26

* Windows: update libs with arm support
Expand Down
4 changes: 2 additions & 2 deletions src/db-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ SEXP /* output is a named list */
SET_LST_CHR_EL(data,j,i,NA_STRING);
else {
if((size_t) lens[j] != strlen(row[j])){
warning("internal error: row %ld field %ld truncated", i, j);
warning("internal error: row %d field %d truncated", i, j);
}
SET_LST_CHR_EL(data,j,i,mkChar(row[j]));
}
Expand Down Expand Up @@ -377,7 +377,7 @@ SEXP /* output is a named list */
(void) strcat(buf, "output group was computed with partial data. ");
(void) strcat(buf, "The remaining data were left un-read in the ");
(void) strcat(buf, "result set.");
warning(buf);
warning("%s", buf);
}
}

Expand Down

0 comments on commit 3a64837

Please sign in to comment.