pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: function to_char(unknown) is not unique at character 8
Date: Thu, 6 Jul 2023 09:01:43 -0500
Message-ID: <937cdcff-5ecd-afdf-8b86-64c0c6c982fa@gmail.com> (raw)
In-Reply-To: <2f8f581c.67f1.1892a7fba60.Coremail.gzhcoder@126.com>
References: <2f8f581c.67f1.1892a7fba60.Coremail.gzhcoder@126.com>

On 7/6/23 04:19, gzh wrote:
>
> Hi,
>
>
> I upgraded the version of PostgreSQL from 12.6 to 12.13,
>
> when I execute the sql below , the to_char function caused the following 
> error.
>
>
> ---------------SQL------------------
>
> select TO_CHAR('1000000');
>

Isn't '1000000' already a character string?

How do you convert a character string to a character string?

-- 
Born in Arizona, moved to Babylonia.

view thread (12+ messages)  latest in thread

Message-ID: <937cdcff-5ecd-afdf-8b86-64c0c6c982fa@gmail.com>
Permalink:  ../937cdcff-5ecd-afdf-8b86-64c0c6c982fa@gmail.com/
Also on:    postgresql.org/message-id/937cdcff-5ecd-afdf-8b86-64c0c6c982fa@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: function to_char(unknown) is not unique at character 8
  In-Reply-To: <937cdcff-5ecd-afdf-8b86-64c0c6c982fa@gmail.com>
  References: <2f8f581c.67f1.1892a7fba60.Coremail.gzhcoder@126.com> <937cdcff-5ecd-afdf-8b86-64c0c6c982fa@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