Skip to content

Fix extra_float_digit setup for Postgresql below 9.0 - #69

Merged
franciscojunior merged 1 commit into
masterfrom
fix-extra-float-digits-setup
Oct 7, 2013
Merged

franciscojunior merged 1 commit into
masterfrom
fix-extra-float-digits-setup

Conversation

@franciscojunior

Copy link
Copy Markdown
Member

Npgsql was sending two commands at the same time to set the extra_float_digits parameter.
The first one with value of 2 and the second one with a value of 3.
The problem is that on postgresql below 9.0, there is no support for value of 3 and then neither
command was being processed letting the parameter with the default value of 0.
Now, Npgsql checks which version it is connected to and sends the correct command accordingly.

Npgsql was sending two commands at the same time to set the extra_float_digits parameter.
The first one with value of 2 and the second one with a value of 3.
The problem is that on postgresql below 9.0, there is no support for value of 3 and then neither
command was being processed letting the parameter with the default value of 0.
Now, Npgsql checks which version it is connected to and sends the correct command accordingly.
@glenebob

glenebob commented Oct 5, 2013

Copy link
Copy Markdown
Contributor

Francisco,

I tested this on all versions >= 8.0 and it seems to work well.

-Glen

@franciscojunior

Copy link
Copy Markdown
Member Author

Thanks for reviewing this code, Glen!
I'm merging it now...

franciscojunior added a commit that referenced this pull request Oct 7, 2013
Fix extra_float_digit setup for Postgresql below 9.0
@franciscojunior
franciscojunior merged commit f2546b4 into master Oct 7, 2013
@roji
roji deleted the fix-extra-float-digits-setup branch July 31, 2014 06:55
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