Files
sqlparser/parser/testdata/query/output/select_when_condition.sql.golden.json

62 lines
1.3 KiB
JSON

[
{
"SelectPos": 0,
"StatementEnd": 0,
"With": null,
"Top": null,
"HasDistinct": false,
"DistinctOn": null,
"SelectItems": [
{
"Expr": {
"CasePos": 7,
"EndPos": 0,
"Expr": null,
"Whens": [
{
"WhenPos": 12,
"ThenPos": 23,
"When": {
"Name": "false",
"QuoteType": 1,
"NamePos": 17,
"NameEnd": 22
},
"Then": {
"LiteralPos": 29,
"LiteralEnd": 34,
"Literal": "hello"
},
"ElsePos": 0,
"Else": null
}
],
"ElsePos": 36,
"Else": {
"LiteralPos": 42,
"LiteralEnd": 47,
"Literal": "world"
}
},
"Modifiers": [],
"Alias": null
}
],
"From": null,
"ArrayJoin": null,
"Window": null,
"Prewhere": null,
"Where": null,
"GroupBy": null,
"WithTotal": false,
"Having": null,
"OrderBy": null,
"LimitBy": null,
"Limit": null,
"Settings": null,
"Format": null,
"UnionAll": null,
"UnionDistinct": null,
"Except": null
}
]