parser: breaking change, let V ORM queries return arrays for *all* non-count queries, including limit = 1 (#17719)

This commit is contained in:
walking devel 2023-03-22 07:48:01 +00:00 committed by GitHub
parent 93b7cc4888
commit d0e78b1da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 117 additions and 128 deletions

View file

@ -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