Skip to content

Inputs within other expressions not parsed by SQLair #146

@Aflynn50

Description

@Aflynn50

SQLair does not parse input expressions nested within other parsed expressions. This can cause issues with input expressions in functions that are saved in output expressions or sub expressions that are inserted in INSERT statements.

For example, when selecting a value directly into an insert the $M.val below will not be parsed:

INSERT INTO t
	(col1, col2)
VALUES
        (&M.col1, SELECT col3 FROM s WHERE x = $M.val)

Or, when selecting a function into an output, again, the $M.val will not be parsed.

SELECT MyFunc($M.val) AS &M.out FROM t

This can be fixed by parsing these sub-expressions recursively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions