Re: CONCAT function adding extra characters

2021-06-15 Thread AI Rumman
I saw that problem when I was running the query from DBeaver. Got my answer. Thanks & Regards. On Tue, Jun 15, 2021 at 12:18 PM Pavel Stehule wrote: > > > út 15. 6. 2021 v 21:07 odesílatel Tom Lane napsal: > >> AI Rumman writes: >> > I am using Postgresql 10 and seeing a strange behavior in C

Re: CONCAT function adding extra characters

2021-06-15 Thread Ron
On 6/15/21 1:55 PM, AI Rumman wrote: I am using Postgresql 10 and seeing a strange behavior in CONCAT function when I am concatenating double precision and int with a separator. select concat('41.1'::double precision,':', 20); Result: 41.1014:20 Value 41.1 which double

Re: CONCAT function adding extra characters

2021-06-15 Thread Pavel Stehule
út 15. 6. 2021 v 21:07 odesílatel Tom Lane napsal: > AI Rumman writes: > > I am using Postgresql 10 and seeing a strange behavior in CONCAT function > > when I am concatenating double precision and int with a separator. > > > select concat('41.1'::double precision,':', 20); > >> Result: > >> 41.

Re: CONCAT function adding extra characters

2021-06-15 Thread Kenneth Marshall
> út 15. 6. 2021 v 20:56 odesílatel AI Rumman napsal: > I am using Postgresql 10 and seeing a strange behavior in CONCAT function > when I am concatenating double precision and int with a separator. > > select concat('41.1'::double precision,':', 20); >> Result: >> 41.1014:20 > > > Va

Re: CONCAT function adding extra characters

2021-06-15 Thread Tom Lane
AI Rumman writes: > I am using Postgresql 10 and seeing a strange behavior in CONCAT function > when I am concatenating double precision and int with a separator. > select concat('41.1'::double precision,':', 20); >> Result: >> 41.1014:20 What have you got extra_float_digits set to?

Re: CONCAT function adding extra characters

2021-06-15 Thread Adrian Klaver
On 6/15/21 11:55 AM, AI Rumman wrote: I am using Postgresql 10 and seeing a strange behavior in CONCAT function when I am concatenating double precision and int with a separator. select concat('41.1'::double precision,':', 20); Result: 41.1014:20 Value 41.1 which doubl

Re: CONCAT function adding extra characters

2021-06-15 Thread Adrian Klaver
On 6/15/21 11:55 AM, AI Rumman wrote: I am using Postgresql 10 and seeing a strange behavior in CONCAT function when I am concatenating double precision and int with a separator. select concat('41.1'::double precision,':', 20); Result: 41.1014:20 Value 41.1 which doubl

Re: CONCAT function adding extra characters

2021-06-15 Thread Pavel Stehule
Hi út 15. 6. 2021 v 20:56 odesílatel AI Rumman napsal: > I am using Postgresql 10 and seeing a strange behavior in CONCAT function > when I am concatenating double precision and int with a separator. > > select concat('41.1'::double precision,':', 20); >> Result: >> 41.1014:20 > > >