mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-23 06:47:14 +08:00
Add bytea equivalents of ltrim() and rtrim().
We had bytea btrim() already, but for some reason not the other two. Joel Jacobson Discussion: https://postgr.es/m/d10cd5cd-a901-42f1-b832-763ac6f7ff3a@www.fastmail.com
This commit is contained in:
@ -605,7 +605,10 @@ select
|
||||
substring('foo' from 'oo') as ssf, -- historically-permitted abuse
|
||||
trim(' ' from ' foo ') as bt,
|
||||
trim(leading ' ' from ' foo ') as lt,
|
||||
trim(trailing ' foo ') as rt;
|
||||
trim(trailing ' foo ') as rt,
|
||||
trim(E'\\000'::bytea from E'\\000Tom\\000'::bytea) as btb,
|
||||
trim(leading E'\\000'::bytea from E'\\000Tom\\000'::bytea) as ltb,
|
||||
trim(trailing E'\\000'::bytea from E'\\000Tom\\000'::bytea) as rtb;
|
||||
select pg_get_viewdef('tt201v', true);
|
||||
|
||||
-- corner cases with empty join conditions
|
||||
|
||||
Reference in New Issue
Block a user