|
1 |
| -# odbc (development version) |
| 1 | +# odbc 1.5.0 |
2 | 2 |
|
3 |
| -* Long running queries can now be interrupted using Ctrl-C. This |
4 |
| - feature is enabled by default in interactive sessions. It can be |
5 |
| - controlled by the `interruptible` argument to `dbConnect`, or by the |
6 |
| - global option `odbc.interruptible`. Should be considered experimental - |
7 |
| - if you experience problems please file an issue on the package github |
8 |
| - repository (#796). |
9 |
| - |
10 |
| -* Raises "Cancelling previous query" warnings from R rather than from Rcpp when |
11 |
| - a connection has a current result to avoid possible incorrect resource |
12 |
| - unwinds with `options(warn = 2)` (#797). |
| 3 | +## Major changes |
13 | 4 |
|
14 |
| -* New `odbc::snowflake()` makes it easier to connect to Snowflake, |
| 5 | +* New function `snowflake()` makes it easier to connect to Snowflake, |
15 | 6 | automatically handling authentication correctly on platforms that provide
|
16 | 7 | Snowflake-native OAuth credentials (@atheriel, #662).
|
| 8 | + |
| 9 | +* Long running queries can now be interrupted using Ctrl-C. This |
| 10 | + feature is enabled by default in interactive sessions. It can be |
| 11 | + controlled by the `interruptible` argument to `dbConnect()` or by the |
| 12 | + global option `odbc.interruptible`. Should be considered experimental---if |
| 13 | + you experience problems please file an issue on the package's GitHub |
| 14 | + repository (#796). |
17 | 15 |
|
18 |
| -* Transitioned to the cli package for formatting most error messages |
19 |
| - (@simonpcouch, #781, #784, #785, #788). |
20 |
| - |
21 |
| -* `databricks()` will now automatically configure the needed driver and driver |
22 |
| - manager on macOS (#651). |
| 16 | +## Minor improvements and bug fixes |
23 | 17 |
|
24 |
| -* Snowflake: Improved performance on write (#760). |
| 18 | +* Improved argument checking and transitioned to the cli package for |
| 19 | + formatting most existing error messages (@simonpcouch, #781, #784, #785, #788). |
25 | 20 |
|
| 21 | +* Raises "Cancelling previous query" warnings from R rather than from Rcpp when |
| 22 | + a connection has a current result to avoid possible incorrect resource |
| 23 | + unwinds with `options(warn = 2)` (#797). |
| 24 | + |
26 | 25 | * Adjusted the default `batch_rows` value for `dbWriteTable()` and `dbBind()`
|
27 | 26 | methods. odbc 1.3.0 changed the default value from 1024 to `NA`, which sets the
|
28 | 27 | batch size to be the length of the input. While this addressed issues for
|
|
31 | 30 | drivers. The package will now interpet `NA` as the minimum of 1024 and the
|
32 | 31 | length of the input (@simonpcouch, #774).
|
33 | 32 |
|
34 |
| -* odbc now always converts the encoding of non-ASCII column names of the SQL |
35 |
| - results to UTF-8. (@shrektan, #430) |
| 33 | +* The encoding of non-ASCII column names of SQL results is now always converted |
| 34 | + to UTF-8. (@shrektan, #430) |
36 | 35 |
|
37 |
| -* Fixed issue that odbc may throw errors with garbage letters when the encoding |
38 |
| - of client and db-server are different. (@shrektan, #432) |
| 36 | +* Improved error messages when the encoding of client and db-server are |
| 37 | + different. (@shrektan, #432) |
39 | 38 |
|
40 |
| -* dbListFields: Now works with DBI::Id and DBI::SQL identifiers. |
| 39 | +* `dbListFields()` now works with `Id()` and `SQL()` identifiers (#771). |
41 | 40 |
|
42 | 41 | * Transitioned `odbcDataType()` to use S4 for consistency. S3 methods defined
|
43 |
| - locally will need to be rewritten (#701). |
44 |
| - |
45 |
| -* Teradata: Resolved issue when previewing tables using the Connections pane. |
| 42 | + locally will need to be rewritten (@simonpcouch, #701). |
46 | 43 |
|
47 | 44 | * The `"OdbcConnection"` method for `dbQuoteIdentifier()` will no longer
|
48 | 45 | pass `x` to `encodeString()` before returning, for consistency with the
|
49 | 46 | default implementation in DBI (@simonpcouch, #765).
|
50 | 47 |
|
51 |
| -* `odbc::databricks()` now picks up on Posit Workbench-managed Databricks |
| 48 | +* A bug in the implementation of a new feature introduced in 1.4.2, where the |
| 49 | + package would automatically set the `ODBCSYSINI` environmental variable when |
| 50 | + using the unixODBC driver manager, was fixed; that environmental variable |
| 51 | + will now actually be set on package load (@simonpcouch, #792). |
| 52 | + |
| 53 | +## Driver specific changes |
| 54 | + |
| 55 | +* `databricks()` will now automatically configure the needed driver and driver |
| 56 | + manager on macOS (@simonpcouch, #651). |
| 57 | + |
| 58 | +* `databricks()` now picks up on Posit Workbench-managed Databricks |
52 | 59 | credentials when rendering Quarto and RMarkdown documents in RStudio
|
53 | 60 | (@atheriel, #805).
|
| 61 | + |
| 62 | +* Improved performance on write with Snowflake (#760). |
| 63 | + |
| 64 | +* Resolved issue when previewing tables using the RStudio Connections pane with |
| 65 | + Teradata (@simonpcouch, #755). |
54 | 66 |
|
55 | 67 | # odbc 1.4.2
|
56 | 68 |
|
|
211 | 223 | * When calling `sqlCreateTable(con, ..., temporary = TRUE)` and `con` is a
|
212 | 224 | connection of class `DB2/AIX64`, the `CREATE TABLE` statement that is generated
|
213 | 225 | properly creates a temporary table in DB2. The statement begins with
|
214 |
| - [`DECLARE GLOBAL TEMPORARY TABLE`](https://www.ibm.com/docs/SSEPEK_11.0.0/sqlref/src/tpc/db2z_sql_declareglobaltemptable.html) |
| 226 | + `DECLARE GLOBAL TEMPORARY TABLE` at |
| 227 | + `https://www.ibm.com/docs/SSEPEK_11.0.0/sqlref/src/tpc/db2z_sql_declareglobaltemptable.html` |
215 | 228 | and ends with `ON COMMIT PRESERVE ROWS` (DB2's default behavior is
|
216 | 229 | `ON COMMIT DELETE ROWS`, which results in the inserted data being
|
217 | 230 | deleted as soon as `dbWriteTable` completes). (@rnorberg, #426)
|
|
0 commit comments