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

Merlin Diavova 2022-05-08 04:17:43 +00:00 committed by Jef Roosens
parent f27d95560e
commit 9fbab969ab
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 3 additions and 0 deletions

View File

@ -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())