mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03: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:
@ -9680,6 +9680,7 @@ get_func_sql_syntax(FuncExpr *expr, deparse_context *context)
|
||||
appendStringInfoChar(buf, ')');
|
||||
return true;
|
||||
|
||||
case F_LTRIM_BYTEA_BYTEA:
|
||||
case F_LTRIM_TEXT:
|
||||
case F_LTRIM_TEXT_TEXT:
|
||||
/* TRIM() */
|
||||
@ -9694,6 +9695,7 @@ get_func_sql_syntax(FuncExpr *expr, deparse_context *context)
|
||||
appendStringInfoChar(buf, ')');
|
||||
return true;
|
||||
|
||||
case F_RTRIM_BYTEA_BYTEA:
|
||||
case F_RTRIM_TEXT:
|
||||
case F_RTRIM_TEXT_TEXT:
|
||||
/* TRIM() */
|
||||
|
Reference in New Issue
Block a user