question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Postgres] Incorect display value for date field

See original GitHub issue

The field value is ‘Infinity’ but it is displayed as ‘292278994-08-17 01:00:00’

Infinity is not same as that date.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lemon-juicecommented, Oct 13, 2018

There’s a new option in Preferences > Database > Result Sets > Data Formats: Use native date/time format. When you enable it then infinity values will display correctly.

1reaction
serge-ridercommented, Oct 18, 2018

I don’t think so. After all DBeaver is universal tool and tries to show data from different databases in a more or less the same format.

For example using database native format won’t let you to easily copy-paste datetime values between different databases (e.g. between PostgreSQL and MySQL).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong date display when using "date" data type in postgres
I don't understand. The value 1279004400 is no legal value for the date data type. – Laurenz Albe. Apr 21, 2017 at 11:36....
Read more >
Wrong displays of DateTime fields from PostgreSQL to KNIME
Therefore, all columns display wrong dates regardless of the time zone selected. Any of this is an issue when using PostgreSQL, but it...
Read more >
8.4: Data Type Formatting Functions - PostgreSQL
The PostgreSQL formatting functions provide a powerful set of tools for converting various data types (date/time, integer, floating point, ...
Read more >
Postgres: How to automatically fix date/time field value out of ...
Show activity on this post. select c.bdate, case when length(c.dot_three)=4 and (c.dot_one::int between 13 and 31) and c.dot_two::int<=12 ...
Read more >
Exploring Postgres date formats and their different functions
Postgres uses the DATE data type for storing different dates in YYYY-MM-DD format. It uses 4 bytes for storing a date value in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found