pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fontana Daniel C. \(Desartec S.R.L.\) <desartecsrl@gmail.com>
To: pgsql-bugs@lists.postgresql.org
Subject: function to_char
Date: Sat, 17 Apr 2021 12:03:02 -0300
Message-ID: <001b01d7339a$c42a84e0$4c7f8ea0$@gmail.com> (raw)

Hi, using postgres 12.5.

 

The to_char function has a problem with format length.

 

Example, select length (to_char (1, '990'))

 

returns 4 because?

 

if the format has length 3?

 



-- 
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus

view thread (2+ messages)  latest in thread

Message-ID: <001b01d7339a$c42a84e0$4c7f8ea0$@gmail.com>
Permalink:  ../001b01d7339a$c42a84e0$4c7f8ea0$@gmail.com/
Also on:    postgresql.org/message-id/001b01d7339a$c42a84e0$4c7f8ea0$@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: desartecsrl@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: function to_char
  In-Reply-To: <001b01d7339a$c42a84e0$4c7f8ea0$@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox