From 32fa652b9033785f3c121697990d05781c8c6702 Mon Sep 17 00:00:00 2001 From: Cameron Braid Date: Fri, 17 Feb 2023 09:22:59 +1100 Subject: [PATCH 1/2] the dissonance disturbed me when reading ! --- docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md b/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md index c12880acafac2..506a6ee4acfce 100644 --- a/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md +++ b/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md @@ -13,9 +13,9 @@ CREATE FUNCTION AS ([ argname ]) -> '' ## Examples ```sql -ALTER FUNCTION a_plus_3 AS (a) -> a+6; +ALTER FUNCTION a_plus_6 AS (a) -> a+6; -SELECT a_plus_3(2); +SELECT a_plus_6(2); +---------+ | (2 + 6) | +---------+ From 976907af4dcbd5c76055f4e0c9c577d89f2105d8 Mon Sep 17 00:00:00 2001 From: Cameron Braid Date: Fri, 17 Feb 2023 09:24:20 +1100 Subject: [PATCH 2/2] made it use the same function as drop and create examples --- .../14-sql-commands/00-ddl/50-udf/ddl-alter-function.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md b/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md index 506a6ee4acfce..1a727c2b02d27 100644 --- a/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md +++ b/docs/doc/14-sql-commands/00-ddl/50-udf/ddl-alter-function.md @@ -13,12 +13,12 @@ CREATE FUNCTION AS ([ argname ]) -> '' ## Examples ```sql -ALTER FUNCTION a_plus_6 AS (a) -> a+6; +ALTER FUNCTION a_plus_3 AS (a) -> a+3; -SELECT a_plus_6(2); +SELECT a_plus_3(2); +---------+ -| (2 + 6) | +| (2 + 3) | +---------+ -| 8 | +| 5 | +---------+ ```