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.

Wrong precision visible for numeric datatype (result grid) with Postgres

See original GitHub issue

System information:

  • Operating system Win 10
  • DBeaver version 5.3.3
  • Java version

Description

When using the grid view for results, numeric datatypes are truncated for display. When double clicking into the result cell, it shows the correct precision. Text result view also shows the correct precision.

This can lead to user confusion 😉 Not sure if locale settings also play a role here.

Steps to reproduce:

SELECT 123.4::numeric(9,6);

grid

text

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Jan 30, 2019

This is configurable in preferences (global or connection-specific). You can change minimum fraction digits: image

In plaintext mode DBeaver uses native numbers representation by default.

0reactions
jianzhaofengcommented, Jan 27, 2022

@jianzhaofeng latest version is 21.3.3 you could download it and check if issue is still actual https://dbeaver.io/download/

Thanks a lot, It has been fix at Version 21.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: 8.1. Numeric Types - PostgreSQL
We use the following terms below: The precision of a numeric is the total count of significant digits in the whole number, that...
Read more >
Data Types - Tableau Help
Sometimes Tableau incorrectly interprets the data type of a field. ... resulting floating-point field in Tableau will have some of its precision truncated....
Read more >
PostgreSQL - change precision of numeric? - Stack Overflow
Try this: ALTER Table account_invoice ALTER COLUMN amount_total TYPE DECIMAL(10,5); DECIMAL(X, Y) -> X represents full length and Y represents  ...
Read more >
SSIS Data types: Change from the Advanced Editor vs Data ...
In this article, we will give an overview on SSIS data types and data types ... Precision: Set the column precision for numeric...
Read more >
Managing Data Formats - DBeaver Documentation
You can change the format of the following data types: ... mode - Specifies a rounding behavior for numerical operations capable of discarding...
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