Skip to content

Inline parameters values into query SQL string #454

@uasan

Description

@uasan

Hello.

Many SQL commands do not support parameters in queries, for example:

COPY (SELECT * FROM t WHERE id = $1 ) TO STDOUT;
CREATE VIEW AS SELECT * FROM t WHERE id = $1;

I plan to implement my own function, serialize the values by described SQL string, and substitute them into the SQL string.

Maybe there is a better solution?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions