(backported) fixed fields extraction for view queries with milti-level comments

This commit is contained in:
Gani Georgiev committed 2025-01-18 12:23:41 +02:00
1 parent fbb8fca48e
commit ae36612c34
3 files changed
+22 -7

No files matched your search

+13 -3
View File
@@ -248,11 +248,21 @@ func TestCreateViewSchema(t *testing.T) {
`
select
-- test single line
id,
text,
demo1.id,
demo1.text,
/* multi
line comment */
url, created, updated from demo1
demo1.url, demo1.created, demo2.updated from demo1
-- comment before join
join demo2 ON (
-- comment inside join
demo2.id = demo1.id
)
-- comment before where
where (
-- comment inside where
demo2.id = demo1.id
)
`,
false,
map[string]string{