Skip to content
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

Support milliseconds #11

Closed
zach-m opened this issue Jan 8, 2017 · 3 comments
Closed

Support milliseconds #11

zach-m opened this issue Jan 8, 2017 · 3 comments

Comments

@zach-m
Copy link

zach-m commented Jan 8, 2017

Hi and thank you for thius project.
LocalDateTime gets rounded to the nearest second in de.bytefish.pgbulkinsert.pgsql.utils.TimeStampUtils. Are there any plans to support millisecond precision?

@bytefish
Copy link
Member

bytefish commented Jan 8, 2017

I think I copied the Java Date to Postgres Date conversion from the Postgres JDBC TimestampUtils. Do you know any source, that explains how to store dates with millisecond resolution?

@bytefish
Copy link
Member

bytefish commented Jan 8, 2017

Here is how Npgsql handles finer Timestamp resolutions. It might be useful to see how it is handled there:

bytefish pushed a commit that referenced this issue Jan 13, 2017
This commit adds Microsecond Resolution for storing Timestamps to
PostgreSQL.
@bytefish
Copy link
Member

I have added Microsecond Resolution for Timestamps. The 1.4 Release will be synced to Maven in some hours I guess. Please reopen the ticket, if the fix doesn't work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants