-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incorrect parsing of timestamp's milliseconds with a leading zero #90
Comments
@akarmes |
@akarmes |
@koxudaxi Thank you for your fix! I've tried But the other issue still persists: it has a bug with leading zero. The value |
@akarmes $ aws rds-data execute-statement --database 'test' \
--resource-arn $RDS_DATA_API_CLIENT_RESOURCE_ARN \
--secret-arn $RDS_DATA_API_CLIENT_SECRETARN \
--include-result-metadata \
--sql $'insert into example(t) values (\'2020-03-11 11:04:21.055\')'
Also, I used this logic to get the first three numbers. local-data-api/local_data_api/resources/resource.py Lines 335 to 337 in dde8601
|
I'm sorry, you are correct. I found the bug in the driver. d = d.replace(microsecond=int(str(java_val.getNanos())[:6])) baztian/jaydebeapi#177 |
@akarmes local-data-api/scripts/integration-test.sh Lines 103 to 104 in 18a8d3f
|
Thank you @koxudaxi! I can confirm the issue is resolved. |
@koxudaxi I've tested version 0.5.7 more extensively and noticed, that given a row with |
I was just writing next bug report 😅 Thank you again! |
Describe the bug
Given a column of type timestamp, leading zero in milliseconds is ignored. Example: inserted value "2021-03-03T08:31:15.077Z" will be read as "2021-03-03 08:31:15.770000"
To Reproduce
Given following table:
And following test script
The output would be following:
Expected behavior
Is should behave equally to AWS Aurora Data API and return:
The text was updated successfully, but these errors were encountered: