mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +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:
parent
93b7cc4888
commit
d0e78b1da6
14 changed files with 117 additions and 128 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue