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

pg: add type 18 for pg boolean data type (#14335)

This commit is contained in:
Merlin Diavova 2022-05-08 04:17:43 +00:00 committed by GitHub
parent d5e70552eb
commit f8747d05dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,9 @@ fn str_to_primitive(str string, typ int) ?orm.Primitive {
16 {
return orm.Primitive(str.i8() == 1)
}
18 {
return orm.Primitive(str == 't')
}
// i8
5 {
return orm.Primitive(str.i8())