Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 29, 2023
1 parent 4f97d0b commit cd02b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/orm.v
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ fn (mut g Gen) write_orm_select(node ast.SqlExpr, connection_var_name string, re
g.writeln('\t${field_var} = (${field_c_typ}){ .state = 2, .err = _const_none__, .data = {EMPTY_STRUCT_INITIALIZATION} };')
} else {
g.writeln('if (!${sub_result_var}.is_error)')
g.writeln('\t*(${field_c_typ}*){${field_var} = *(${field_c_typ}*)${sub_result_var}.data;')
g.writeln('\t*(${field_c_typ}*)${field_var} = *(${field_c_typ}*)${sub_result_var}.data;')
}
fields_idx++
} else if sym.kind == .array {
Expand Down

0 comments on commit cd02b30

Please sign in to comment.