Repository navigation
NpgsqlParameter - #102
Closed
glenebob wants to merge 2 commits into
Closed
NpgsqlParameter#102glenebob wants to merge 2 commits into
glenebob wants to merge 2 commits into
Conversation
Move parameter type coersion from the backend converters (at execution time) to NpgsqlParameter (at parameter modification time). Move messages from NpgsqlParamatet.cs to Messages.cs so they can be shared more sensibly.
Add classes for framework/provider type conversions. Fix typo'd names and location of framework/provider conversion delegate declarations. Replace bogus backend type name "text_nonbinary" with proper "unknown". Bit values always decode to a BitString, never boolean; need to figure out how to deal with compatibility issues.
roji
force-pushed
the
master
branch
2 times, most recently
from
September 16, 2014 08:50
0b35ef0 to
c43b6af
Compare
roji
force-pushed
the
master
branch
2 times, most recently
from
January 14, 2015 02:37
e1d8c57 to
1f140e5
Compare
roji
force-pushed
the
master
branch
2 times, most recently
from
April 12, 2015 07:50
1236d1f to
e8ae2e0
Compare
roji
force-pushed
the
master
branch
5 times, most recently
from
April 29, 2015 14:47
2fc8944 to
3eb6fa4
Compare
Member
|
Closing as this is likely no longer relevant. Please reopen if otherwise. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Francisco,
This PR aims to move parameter type coercion to NpgsqlParameter, so that type coercions can be done as parameter values, types, and modifiers are set, rather than when they are encoded for transmission to the backend. I believe that once this is done, we'll be able to improve prepared statements because we'll have all type information set up before the Parse command is executed.
This is a work in progress. I started it about a month and a half ago, and haven't looked at it in at least a month. Many tests fail, and lots of commented code is still floating around. With PR #77 merged, it became reasonable to submit this one for early review. Comments welcome!
-Glen