Skip to content

Commit

Permalink
Update postgres_type.rs for DataType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicky committed Mar 13, 2023
1 parent e62ad83 commit a3a61f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/src/types/postgres_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ impl DataType {
DataType::Boolean => 1,
DataType::Int16 => 2,
DataType::Int32 | DataType::Float32 | DataType::Date => 4,
DataType::Serial => todo!(),
DataType::Int64
| DataType::Serial
| DataType::Float64
| DataType::Timestamp
| DataType::Timestamptz
Expand Down Expand Up @@ -115,7 +115,7 @@ impl DataType {
DataType::Int16 => 21,
DataType::Int32 => 23,
DataType::Int64 => 20,
DataType::Serial => todo!("SERIAL"),
DataType::Serial => 20,
DataType::Float32 => 700,
DataType::Float64 => 701,
DataType::Decimal => 1700,
Expand All @@ -135,7 +135,7 @@ impl DataType {
DataType::Int16 => 1005,
DataType::Int32 => 1007,
DataType::Int64 => 1016,
DataType::Serial => todo!("SERIAL"),
DataType::Serial => 1016,
DataType::Float32 => 1021,
DataType::Float64 => 1022,
DataType::Decimal => 1231,
Expand Down

0 comments on commit a3a61f1

Please sign in to comment.