-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
21 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
vlib/v/checker/tests/orm_left_side_expr_in_infix_expr_has_no_struct_field_error.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
vlib/v/checker/tests/orm_using_non_struct_field_in_order_by_error.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
vlib/v/checker/tests/orm_using_non_struct_field_in_order_by_error.vv:14:29: error: V ORM: `User` structure has no field with name `database`. | ||
vlib/v/checker/tests/orm_using_non_struct_field_in_order_by_error.vv:14:29: error: ORM: `User` structure has no field with name `database`. | ||
2 possibilities: `id`, `username`. | ||
12 | | ||
12 | | ||
13 | users := sql db { | ||
14 | select from User order by database | ||
| ~~~~~~~~ | ||
15 | }! | ||
16 | | ||
vlib/v/checker/tests/orm_using_non_struct_field_in_order_by_error.vv:17:2: error: `println` can not print void expressions | ||
15 | }! | ||
16 | | ||
16 | | ||
17 | println(users) | ||
| ~~~~~~~~~~~~~~ | ||
18 | } |
27 changes: 7 additions & 20 deletions
27
vlib/v/checker/tests/orm_where_clause_unsupported_field_types_err.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
vlib/v/checker/tests/orm_where_clause_unsupported_field_types_err.vv:15:29: error: V ORM: does not support array of primitive types | ||
13 | bytes := [u8(0)] | ||
14 | e := sql db { | ||
15 | select from Example where example == bytes | ||
| ~~~~~~~ | ||
16 | }! | ||
17 | f := sql db { | ||
Details: | ||
field name: `example` | ||
data type: `[]u8` | ||
vlib/v/checker/tests/orm_where_clause_unsupported_field_types_err.vv:18:30: error: V ORM: does not support array of primitive types | ||
16 | }! | ||
17 | f := sql db { | ||
18 | select from Example where (example == bytes) | ||
| ~~~~~~~ | ||
19 | }! | ||
20 | print(e) | ||
Details: | ||
field name: `example` | ||
data type: `[]u8` | ||
vlib/v/checker/tests/orm_where_clause_unsupported_field_types_err.vv:8:2: error: ORM: array fields must have an fkey attribute | ||
6 | pub struct Example { | ||
7 | id int [primary; sql: serial] | ||
8 | example []u8 [sql_type: 'bytea'; unique] | ||
| ~~~~~~~~~~~~ | ||
9 | } | ||
10 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters