Skip to content

Commit 9c622d9

Browse files
authored
v1.6.1 release candidate (#903)
* update NEWS * update cran comments * skip dependent tests without unixodbc * Increment version number to 1.6.1
1 parent aba5578 commit 9c622d9

12 files changed

+33
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: odbc
22
Title: Connect to ODBC Compatible Databases (using the DBI Interface)
3-
Version: 1.6.0.9000
3+
Version: 1.6.1
44
Authors@R: c(
55
person("Jim", "Hester", role = "aut"),
66
person("Hadley", "Wickham", , "[email protected]", role = c("aut", "cre")),

NEWS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# odbc (development version)
1+
# odbc 1.6.1
2+
3+
* odbc will now automatically find statically built installations of
4+
unixodbc (#899).
25

36
# odbc 1.6.0
47

cran-comments.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
Trying again - I think we should now be passing on M1mac. Sorry for the multiple attempts here but something is configured in an unexpected way on that system and we're having a hard time replicating locally.
2+
13
## R CMD check results
24

3-
Recent MacOS builds trigger the NOTE "installed size is 10.8Mb." MacOS builds include all debug symbols and CRAN policy doesn't permit building without them.
5+
Recent MacOS builds trigger the NOTE "installed size is 11.0Mb." MacOS builds include all debug symbols and CRAN policy doesn't permit building without them.
46

57
## revdepcheck results
68

79
We checked 35 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
810

911
* We saw 0 new problems
1012
* We failed to check 0 packages
11-

tests/testthat/helper.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ skip_if_no_drivers <- function() {
3030
}
3131
}
3232

33+
skip_if_no_unixodbc <- function() {
34+
if (!is_windows() && length(locate_install_unixodbc()) == 0) {
35+
skip("No unixodbc installation found.")
36+
}
37+
}
38+
3339
#' Test round tripping a simple table
3440
#'
3541
#' This tests all the supported data types, including missing values. It first

tests/testthat/test-dbi-connection.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test_that("show method does not print server if it is not available", {
2727
})
2828

2929
test_that("dbQuoteIdentifier() errors informatively", {
30+
skip_if_no_unixodbc()
3031
con <- test_con("SQLITE")
3132

3233
expect_snapshot(

tests/testthat/test-driver-mysql.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_no_unixodbc()
2+
13
test_that("MySQL", {
24
DBItest::make_context(
35
odbc(),

tests/testthat/test-driver-oracle.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_no_unixodbc()
2+
13
test_that("Oracle", {
24
DBItest::make_context(
35
odbc(),

tests/testthat/test-driver-postgres.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_no_unixodbc()
2+
13
test_that("PostgreSQL", {
24
DBItest::make_context(
35
odbc(),
@@ -164,4 +166,3 @@ test_that("odbcPreviewObject", {
164166
})
165167
expect_equal(nrow(res), 3)
166168
})
167-

tests/testthat/test-driver-sql-server.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_no_unixodbc()
2+
13
test_that("SQLServer", {
24
DBItest::make_context(
35
odbc(),

tests/testthat/test-driver-sqlite.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
skip_if_no_unixodbc()
2+
13
test_that("SQLite", {
24
DBItest::make_context(
35
odbc(),

tests/testthat/test-odbc-connection.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ test_that("automatically picks correct quote type", {
6666

6767
# connections pane -------------------------------------------------------------
6868
test_that("validateObjectName() errors informatively", {
69+
skip_if_no_unixodbc()
6970
con <- test_con("SQLITE")
7071

7172
expect_snapshot(
@@ -82,6 +83,7 @@ test_that("validateObjectName() errors informatively", {
8283
# odbcConnectionColumns deprecation --------------------------------------
8384

8485
test_that("odbcConnectionColumns warns on usage (#699)", {
86+
skip_if_no_unixodbc()
8587
con <- test_con("SQLITE")
8688
lifecycle::expect_deprecated(odbcConnectionColumns(con, "test"))
8789
})

tests/testthat/test-utils.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ test_that("set_odbcsysini() works (#791)", {
117117
})
118118

119119
test_that("check_row.names()", {
120+
skip_if_no_unixodbc()
120121
con <- test_con("SQLITE")
121122

122123
expect_snapshot(
@@ -126,6 +127,7 @@ test_that("check_row.names()", {
126127
})
127128

128129
test_that("check_field.types()", {
130+
skip_if_no_unixodbc()
129131
con <- test_con("SQLITE")
130132

131133
expect_snapshot(
@@ -135,6 +137,7 @@ test_that("check_field.types()", {
135137
})
136138

137139
test_that("check_attributes()", {
140+
skip_if_no_unixodbc()
138141
expect_snapshot(
139142
error = TRUE,
140143
con <- test_con("SQLITE", attributes = list(boop = "bop"))
@@ -175,6 +178,9 @@ test_that("locate_install_unixodbc() returns reasonable values", {
175178
skip_if(!is_macos())
176179
skip_if(!has_unixodbc(), "odbcinst not available.")
177180

181+
# odbc_config / pkg-config cflags point to nonexistent files on CRAN (#903)
182+
skip_on_cran()
183+
178184
res <- locate_install_unixodbc()
179185

180186
expect_true(file.exists(res[1]))

0 commit comments

Comments
 (0)