Skip to content

Commit 4f53f0e

Browse files
FurcyPinebyhr
authored andcommitted
Fix code example in documentation
Trying to run the code raises the following exception: ``` Value of DEFAULT must evaluate to tinyint (actual: integer) ```
1 parent b4b2d9a commit 4f53f0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/main/sphinx/udf/sql/begin.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The following example computes the value `42`:
3838

3939
```sql
4040
FUNCTION meaning_of_life()
41-
RETURNS tinyint
41+
RETURNS integer
4242
BEGIN
43-
DECLARE a tinyint DEFAULT 6;
44-
DECLARE b tinyint DEFAULT 7;
43+
DECLARE a integer DEFAULT 6;
44+
DECLARE b integer DEFAULT 7;
4545
RETURN a * b;
4646
END
4747
```

0 commit comments

Comments
 (0)