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

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