-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
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
Fixed double/real + added timestamp, numeric, date & json #338
Fixed double/real + added timestamp, numeric, date & json #338
Conversation
@pst9354: This is a great start! Could you please address the analysis error (Dead code.) and lints? Would it be a stretching goal to also add some tests for these decodings, e.g. a few Also: could you add a note to the changelog and bump the version? |
@isoos I don't see any analysis errors: As everyone else, I'm really short of time :-) But I will try to find some time during the weekend... |
Well I'm horrible at using git. It seems that the latest version is not uploaded. I'll check. |
I just commited some changes. |
Added some tests + fixed a few things to match the tests. I don't have the time to implement |
I think you actually broke some conversions, let me have a look tomorrow, |
If you change the test's queryMode to extended, it should return the same values, although on a different protocol. Understandable |
Yes, the Z at the end of DateTime is important. We want to get the same results, using either the extended or simple protocol. Example: Extended: Simple (your version): Simple (the version I commited, I only reverted the timestamp and date types): |
I just pushed the changes needed to get same results in extended and simple protocol. (We are not using hre interval or numeric types in any of our projects, so I really don't know what types they are supposed to return) |
b37b1d6
to
57c05d1
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #338 +/- ##
==========================================
+ Coverage 86.60% 87.26% +0.65%
==========================================
Files 28 28
Lines 2964 2983 +19
==========================================
+ Hits 2567 2603 +36
+ Misses 397 380 -17 ☔ View full report in Codecov by Sentry. |
I've tried to read more about this, and it is not clear to me what is being sent on the binary protocol, when somebody uses a timestamp without timezone. Filed #339 for further tracking of this issue, for the time being, I've opted to follow the binary protocol's values. However, I updated your commit, as appending the |
published, thank you! |
Great, my test-case works with the latest commit. |
Attempt to add some missing comversions in PostgresTextDecoder.
Also corrected conversion for double & real.
Created after discussion about: PostgresTextDecoder