1
0
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:
walking devel
2023-03-22 07:48:01 +00:00
committed by GitHub
parent 93b7cc4888
commit d0e78b1da6
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