Skip to content

Commit

Permalink
#77 Postgres binary type
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Aug 1, 2021
1 parent 3805da6 commit b893bbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend/postgres/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ impl TableBuilder for PostgresQueryBuilder {
},
ColumnType::Date => "date".into(),
ColumnType::Binary(length) => match length {
Some(length) => format!("binary({})", length),
None => "binary".into(),
Some(_) | None => "bytea".into(),
},
ColumnType::Boolean => "bool".into(),
ColumnType::Money(precision) => match precision {
Expand Down

0 comments on commit b893bbf

Please sign in to comment.