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

@ -149,10 +149,11 @@ fn test_sqlite_orm() {
insert test_default_atribute into TestDefaultAtribute
}
result_test_default_atribute := sql db {
test_default_atributes := sql db {
select from TestDefaultAtribute limit 1
}
result_test_default_atribute := test_default_atributes.first()
assert result_test_default_atribute.name == 'Hitalo'
assert test_default_atribute.created_at.len == 0
assert test_default_atribute.created_at1.len == 0