Repository navigation
[Source-mssql] Datetimeoffset field used as cursor error patch - #33330
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
257c992 to
2929314
Compare
There was a problem hiding this comment.
Looks like it's the exact same as the overriden function. Please remove
There was a problem hiding this comment.
The bug really is in the parent method that should parse yyyy-MM-dd'T'HH:mm:ss.SSSSSS**SSS**XXX instead of `yyyy-MM-dd'T'HH:mm:ss.SSSSSSXXX'.
Please document that and create a separate issue for the CDK issue (we''l obviously need to add more generic tests)
Why do we have a space in the MS-SQL formatter, while there's none in the "generic" formatter?
There was a problem hiding this comment.
This is super nasty stuff.
Can you add a comment that points to the fact that OffsetDateTime is a java construct, while DateTimeOffset is a sql server construct, and that the offset there is defined in minutes?
There was a problem hiding this comment.
It really is. The naming confusion took me so long to identify. I'll make a note of all of your comments shortly.
588e8a3 to
9dbd388
Compare
Description: Currently, Source-mssql is using
OffsetDateTime.parseforDATETIMEOFFSETfields which is incorrect because that method is parsing the timestamp string into ISO Datetime format. For MSSQL, this field should be parsed with theyyyy-MM-dd HH:mm:ss.SSSSSSS XXXformat.Addresses issue