From: rudolf <stu3.1@eq.cz>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: "format" function documentation fix
Date: Tue, 17 Sep 2013 11:00:48 +0200
Message-ID: <52381A40.9080900@eq.cz> (raw)
In-Reply-To: <CAEZATCWTBwgMA-Nr1UL=r06Zc0n27n2dnRiK1P-Ontc=B=OFVw@mail.gmail.com>
References: <52341E55.5020106@eq.cz>
<CAEZATCWTBwgMA-Nr1UL=r06Zc0n27n2dnRiK1P-Ontc=B=OFVw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
(Please CC me the reply, since I'm not subscribed to the list.)
Dean Rasheed wrote:
> On 14 September 2013 09:29, rudolf <stu3.1@eq.cz> wrote:
>> The last example from
>> http://www.postgresql.org/docs/9.3/static/functions-string.html#FUNCTIONS-STRING-FORMAT
>> - "examples using width fields and the - flag" seems to be incorrect, see
>> the attached patch.
>
> No, the example is correct. Referring to the documentation above that:
>
> If the width argument is negative, the result is left aligned (as
> if the - flag had been specified) ...
>
> This applies even if the "-" flag is also specified. So the last
> example is meant to illustrate that 2 minuses don't make a plus here.
That's very unusual, IMO. This behavior follows some SQL standard or is
it an invention of PostgreSQL?
Thanks,
r.
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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-docs@postgresql.org
Cc: stu3.1@eq.cz, dean.a.rasheed@gmail.com
Subject: Re: "format" function documentation fix
In-Reply-To: <52381A40.9080900@eq.cz>
* 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