Repository navigation
Handles NA values by converting them to NULL - #82
Merged
Merged
Conversation
thrasibule
force-pushed
the
insert_NULL
branch
2 times, most recently
from
November 28, 2016 02:33
a782e3a to
36b8fdd
Compare
thrasibule
force-pushed
the
insert_NULL
branch
2 times, most recently
from
December 17, 2016 22:58
c74c2e1 to
a92aa8c
Compare
krlmlr
reviewed
Dec 28, 2016
| @@ -93,9 +93,14 @@ class PqResult : boost::noncopyable { | |||
| std::vector<int> c_formats(nparams_); | |||
| std::vector<std::string> s_params(nparams_); | |||
| for (int i = 0; i < nparams_; ++i) { | |||
Member
There was a problem hiding this comment.
I do wonder why only character parameters are supported here. Is this a limitation of PostgreSQL?
Contributor
Author
There was a problem hiding this comment.
Everything is passed as text to the bindings. So it doesn't matter what the original type of the parameters are, they are always converted to character. We could talk to libpq using the binary protocol but that's another undertaking...
thrasibule
force-pushed
the
insert_NULL
branch
from
December 29, 2016 08:55
a92aa8c to
ecb5eed
Compare
Member
|
Thanks! |
krlmlr
added a commit
that referenced
this pull request
Aug 7, 2017
- Update Rcpp registration code. - `dbConnect()` now accepts arbitrary connection parameters in the `...` argument (#83, @thrasibule). - Handles NA values by converting them to NULL (#82, @thrasibule). - Handle string quoting and missing values in strings (#89, @jimhester). - `PKG_CFLAGS` and `PKG_LIBS` are now being set when using pg_config for `includedir` and `libdir` (#119, @Usman-R). - Use `BYTEA` instead of `BLOB` for PostgreSQL 9.5 support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #67.