Skip to content

Commit

Permalink
fix booleans not recognized in a pg table
Browse files Browse the repository at this point in the history
  • Loading branch information
Blagoj Atanasovski authored and atanasovskib committed Aug 8, 2019
1 parent 0f025b2 commit ef3b488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/schemamanagement/ts/pg_type_to_idrf_test.go
Expand Up @@ -18,6 +18,7 @@ func TestPgTypeToIdrf(t *testing.T) {
{"integer", idrf.IDRFInteger32},
{"bigint", idrf.IDRFInteger64},
{"jsonb", idrf.IDRFJson},
{"boolean", idrf.IDRFBoolean},
{"asdasd", idrf.IDRFUnknown},
}

Expand Down
2 changes: 2 additions & 0 deletions internal/schemamanagement/ts/type_conversion.go
Expand Up @@ -25,6 +25,8 @@ func pgTypeToIdrf(pgType string) idrf.DataType {
return idrf.IDRFJson
case "json":
return idrf.IDRFJson
case "boolean":
return idrf.IDRFBoolean
default:
return idrf.IDRFUnknown
}
Expand Down

0 comments on commit ef3b488

Please sign in to comment.