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:
parent
d5e70552eb
commit
f8747d05dc
@ -215,6 +215,9 @@ fn str_to_primitive(str string, typ int) ?orm.Primitive {
|
|||||||
16 {
|
16 {
|
||||||
return orm.Primitive(str.i8() == 1)
|
return orm.Primitive(str.i8() == 1)
|
||||||
}
|
}
|
||||||
|
18 {
|
||||||
|
return orm.Primitive(str == 't')
|
||||||
|
}
|
||||||
// i8
|
// i8
|
||||||
5 {
|
5 {
|
||||||
return orm.Primitive(str.i8())
|
return orm.Primitive(str.i8())
|
||||||
|
Loading…
Reference in New Issue
Block a user