pg: add type 18 for pg boolean data type (#14335)
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