1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: correctly set pos of sql blocks (#9334)

This commit is contained in:
Lukas Neubert
2021-03-16 22:00:50 +01:00
committed by GitHub
parent d30750de92
commit 05b51c5b01
2 changed files with 12 additions and 2 deletions

View File

@ -61,3 +61,13 @@ fn prevent_empty_line_after_multi_line_statements() {
println('s')
}
}
fn between_orm_blocks() {
sql db {
insert upper_1 into Upper
}
upper_s := sql db {
select from Upper where id == 1
}
}