Skip to content

Commit

Permalink
Add error for unsupported serial column type.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicky committed Mar 14, 2023
1 parent ca14bf6 commit 774b9a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/frontend/src/binder/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,13 @@ pub fn bind_data_type(data_type: &AstDataType) -> Result<DataType> {
"float8" => DataType::Float64,
"timestamptz" => DataType::Timestamptz,
"jsonb" => DataType::Jsonb,
"serial" => {
return Err(ErrorCode::NotSupported(
"Column type SERIAL is not supported".into(),
"Please remove the SERIAL column".into(),
)
.into())
}
_ => return Err(new_err().into()),
}
}
Expand Down

0 comments on commit 774b9a4

Please sign in to comment.