Skip to content

Commit 144e91c

Browse files
committed
Correct PARSE_UNQUALIFIED_NAMES example output
+ Add input/output
1 parent 55ccc7a commit 144e91c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

doc/sql.extensions/README.sql_package.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,21 @@ select *
4848
`RDB$SQL.PARSE_UNQUALIFIED_NAMES` is a selectable procedure that parses a list of unqualified SQL names and returns
4949
one row for each name. The input must follow parse rules for names and the output of unquoted names are uppercased.
5050

51+
Input parameters:
52+
- `NAMES` type `RDB$TEXT_MAX` - list of names
53+
54+
Output parameters
55+
- `NAME` type `RDB$RELATION_NAME` - a single name, normalised to how identifiers are stored in the metadata tables
56+
5157
```sql
5258
select *
5359
from rdb$sql.parse_unqualified_names('schema1, schema2, "schema3", "schema 4", "schema ""5"""');
5460

5561
-- SCHEMA1
5662
-- SCHEMA2
5763
-- schema3
58-
-- "schema 4"
59-
-- "schema "5"
64+
-- schema 4
65+
-- schema "5"
6066
```
6167

6268
# Authors

0 commit comments

Comments
 (0)