From 3b8d21c789912b70d2e5ab6fce2c781f720a4e6a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 29 Nov 2023 13:42:44 -0800 Subject: [PATCH] Fixed warning with RPostgreSQL --- NEWS.md | 1 + R/select.R | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 337de0c..1ffdaed 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ ## 0.2.9 (unreleased) - Fixed typecasting for empty results with RPostgreSQL 0.7 +- Fixed warning with RPostgreSQL ## 0.2.8 (2021-01-16) diff --git a/R/select.R b/R/select.R index 8fc21c7..bd03a43 100644 --- a/R/select.R +++ b/R/select.R @@ -155,7 +155,7 @@ fetchRecords <- function(conn, statement, params) { ret <- list() column_info <- NULL - silenceWarnings(c("length of NULL cannot be changed", "unrecognized MySQL field type", "unrecognized PostgreSQL field type", "(unknown (", "Decimal MySQL column"), { + silenceWarnings(c("length of NULL cannot be changed", "unrecognized MySQL field type", "unrecognized PostgreSQL field type", "unknown (", "Decimal MySQL column"), { statement <- addParams(conn, statement, params) res <- NULL