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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue