Skip to content

parse error in FOR JSON PATH #127

Closed
Closed
@lovasoa

Description

@lovasoa

Discussed in #126

Originally posted by Pieter3033 November 8, 2023
Hi,

The newest form component is really cool 🔥.

I am currently struggling to populate the options of a select type in the form component.
I am using MSSQL.

I have attempted the following:
(SELECT Column1 AS label, Column2 AS value FROM MyTable FOR JSON PATH) AS options

Error:
image

Note, I have tested this SQL statement inside of MSSQL and the output is as expected.
Maybe I am struggling with the syntax?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions