-
Notifications
You must be signed in to change notification settings - Fork 4
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 RD-10923: SQL time/timestamps are losing milliseconds #430
Fixed RD-10923: SQL time/timestamps are losing milliseconds #430
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sql-client/src/main/scala/raw/client/sql/writers/TypedResultSetJsonWriter.scala
Outdated
Show resolved
Hide resolved
55b3d23
to
cb0f9bc
Compare
cb0f9bc
to
74ee7db
Compare
/publish
|
74ee7db
to
e46db25
Compare
/publish
|
ad6fc15
to
6b51b21
Compare
/publish
|
/publish
|
32aa9ee
to
9f2ad32
Compare
/publish
|
/publish
|
a3d2f39
to
382b053
Compare
382b053
to
82a3cbd
Compare
/publish
|
82a3cbd
to
9bb7da7
Compare
/publish
|
9bb7da7
to
2244538
Compare
2244538
to
76b57c8
Compare
/publish
|
a32ab38
to
5b1403f
Compare
@@ -143,7 +144,8 @@ class TypedResultSetCsvWriter(os: OutputStream, lineSeparator: String, maxRows: | |||
val date = v.getDate(i).toLocalDate | |||
gen.writeString(dateFormatter.format(date)) | |||
case _: RawTimeType => | |||
val time = v.getTime(i).toLocalTime | |||
val sqlTime = v.getTime(i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have the same patch as in JSON. And make a specific test to exercise CSV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Also took care of not displaying .000
when there are zero milliseconds, since it's our convention in CSV.
5b1403f
to
c7bcc77
Compare
No description provided.