mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-29 00:10:24 +01:00
(backported) fixed fields extraction for view queries with milti-level comments
This commit is contained in:
1 parent
fbb8fca48e
commit
ae36612c34
3 files changed
+22
-7
No files matched your search
+13
-3
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user