1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check unsafe array assign (fix #9651) (#15515)

This commit is contained in:
yuyi
2022-08-25 13:52:13 +08:00
committed by GitHub
parent 86496aa191
commit c662431cfd
24 changed files with 84 additions and 48 deletions

View File

@ -66,7 +66,7 @@ pub fn (db Connection) @select(config orm.SelectConfig, data orm.QueryData, wher
stmt.bind_res(fields, dataptr, lens, num_fields)
mut row := 0
mut types := config.types
mut types := config.types.clone()
mut field_types := []FieldType{}
if config.is_count {
types = [orm.type_idx['u64']]