Skip to content

NpgsqlParameter - #102

Closed
glenebob wants to merge 2 commits into
npgsql:masterfrom
glenebob:npgsql_parameter_3
Closed

glenebob wants to merge 2 commits into
npgsql:masterfrom
glenebob:npgsql_parameter_3

Conversation

@glenebob

Copy link
Copy Markdown
Contributor

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

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

roji commented Aug 9, 2015

Copy link
Copy Markdown
Member

Closing as this is likely no longer relevant. Please reopen if otherwise.

@roji roji closed this Aug 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants