mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: breaking change, let V ORM queries return arrays for *all* non-count queries, including limit = 1 (#17719)
This commit is contained in:
@@ -106,10 +106,11 @@ fn test_orm_insert_with_multiple_child_elements() {
|
||||
insert new_parent into Parent
|
||||
}
|
||||
|
||||
parent := sql db {
|
||||
parents := sql db {
|
||||
select from Parent where id == 1
|
||||
}
|
||||
|
||||
parent := parents.first()
|
||||
assert parent.children.len == new_parent.children.len
|
||||
assert parent.notes.len == new_parent.notes.len
|
||||
|
||||
|
||||
Reference in New Issue
Block a user