Leon P Smith
Leon P Smith
We already have that; it's `SQLError`. However a connection can disappear due to network problems among other things too, so we won't always get an error back from postgres. In...
Yeah, perhaps the name should be PGError or something more suggestive. But it's been our catch-all for errors reported from postgres so far.
There's actually a reason for that: you can't really blindly convert months to days, or days to hours/minutes/seconds, without further context regarding the specific time and location you are talking...
That said, I have considered adding a `FromField NominalDiffTime` instance that assumes any intervals can be converted to seconds directly; any intervals that contain non-convertible components would result in an...
My apologies for forgetting to respond to this issue. I guess, what's your goal here? If all you care about is storing `NominalDiffTime`s, and getting them back out with full...
I think it would be a worthy addition to postgresql-simple, and I would welcome a pull request of reasonable quality.
In addition, I would probably accept a pull request that adds a `FromField` instance for `NominalDiffTime`, as well as `Fixed`. Though I may have looked into supporting `Fixed` once, and...
It looks reasonable (if a little verbose), and potentially useful, but is it of general interest enough to be included in postgresql-simple? I mean, these definitions work perfectly well outside...
Well, this is an interesting idea, but I still don't think it's of a sufficiently general interest. I'm happy to keep this issue open for now in case anybody else...