We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var interval = new NpgsqlTypes.NpgsqlInterval(1, 2, 3, 4, 5); var intervalFromTimespan = new NpgsqlTypes.NpgsqlInterval(new TimeSpan(1, 2, 3, 4, 5)); Console.WriteLine("Interval :"+interval); Console.WriteLine("Interval from timespan:" + intervalFromTimespan);
Output:
Interval :1 day 02:03:04.005 Interval from timespan:26:03:04.005
First I thought that is 26 days :) then realized that it's just represented in hours... Can this be considered as bug?
The text was updated successfully, but these errors were encountered:
This is definitely a bug! It should show the same output string.
I'll add the proper label on it.
Thanks for heads up, David!
Sorry, something went wrong.
Fix byug #152: NpgsqlInterval different constructors different ToString
fd99912
Call a more appropriate constructor from NpgsqlInterval(TimeSpan).
Add test for pr npgsql#152
6504609
Fix PR npgsql#152
b99ac42
Change constructors to handle ticks with more than 30 days.
Merge pull request #211 from Tradioyes/master
296a3c7
Fix bug #152: NpgsqlInterval different constructors different ToString
Fixed by #211. Closing it.
glenebob
No branches or pull requests
Output:
First I thought that is 26 days :) then realized that it's just represented in hours... Can this be considered as bug?
The text was updated successfully, but these errors were encountered: