BUG #17450: SUBSTRING function extracting lesser characters than specified

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: ganguly(dot)04(at)gmail(dot)com
Subject: BUG #17450: SUBSTRING function extracting lesser characters than specified
Date: 2022-03-28 10:30:07
Message-ID: 17450-69df48455c28fbea@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17450
Logged by: Suman Ganguly
Email address: ganguly(dot)04(at)gmail(dot)com
PostgreSQL version: 10.17
Operating system: x86_64-pc-linux-gnu
Description:

select substring('123456', 0 , 5)
On running this, Postgres returns '1234'
Expecting '12345' to be returned as per the documentation

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-03-28 11:01:20 Re: BUG #17450: SUBSTRING function extracting lesser characters than specified
Previous Message Semab Tariq 2022-03-28 07:20:37 Re: BUG #17447: uninstaller fails