Skip to content

fix(postgresql): Add support for named parameters for function calls in postgres#2662

Open
nguyenmp wants to merge 1 commit into
taozhi8833998:masterfrom
tryretool:marknguyen/fix_named_parameters_postgres
Open

fix(postgresql): Add support for named parameters for function calls in postgres#2662
nguyenmp wants to merge 1 commit into
taozhi8833998:masterfrom
tryretool:marknguyen/fix_named_parameters_postgres

Conversation

@nguyenmp

@nguyenmp nguyenmp commented Jun 3, 2026

Copy link
Copy Markdown

See https://www.postgresql.org/docs/current/sql-syntax-calling-funcs.html

You can call a Postgres SQL function with positional parameters or named parameters. Named parameters can either use := or =>:

SELECT concat_lower_or_upper(a => 'Hello', b => 'World');
SELECT concat_lower_or_upper(a => 'Hello', b => 'World', uppercase => true);
SELECT concat_lower_or_upper(a => 'Hello', uppercase => true, b => 'World');
SELECT concat_lower_or_upper(a := 'Hello', uppercase := true, b := 'World');
SELECT concat_lower_or_upper('Hello', 'World', uppercase => true);

@nguyenmp nguyenmp changed the title Add support for named parameters for function calls in postgres fix(postgres): Add support for named parameters for function calls in postgres Jun 3, 2026
@nguyenmp nguyenmp changed the title fix(postgres): Add support for named parameters for function calls in postgres fix(postgresql): Add support for named parameters for function calls in postgres Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant