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:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user