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

all: v.ast.byte_type -> v.ast.u8_type (#14964)

This commit is contained in:
zakuro
2022-07-06 19:32:30 +09:00
committed by GitHub
parent 00dfce655e
commit a46bcf3571
19 changed files with 46 additions and 50 deletions

View File

@ -209,7 +209,7 @@ fn buffer_to_primitive(data_list []&u8, types []int) ?[]orm.Primitive {
orm.type_idx['i64'] {
primitive = *(unsafe { &i64(data) })
}
orm.type_idx['byte'] {
orm.type_idx['u8'] {
primitive = *(unsafe { &u8(data) })
}
orm.type_idx['u16'] {
@ -249,7 +249,7 @@ fn buffer_to_primitive(data_list []&u8, types []int) ?[]orm.Primitive {
fn mysql_type_from_v(typ int) ?string {
str := match typ {
orm.type_idx['i8'], orm.type_idx['byte'] {
orm.type_idx['i8'], orm.type_idx['u8'] {
'TINYINT'
}
orm.type_idx['i16'], orm.type_idx['u16'] {