Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Aug 7, 2021
1 parent fdfb9d8 commit 82cee27
Show file tree
Hide file tree
Showing 2 changed files with 1,433 additions and 1,132 deletions.
8 changes: 1 addition & 7 deletions src/postgres/parser/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ pub fn parse_column_query_result(result: ColumnQueryResult) -> ColumnInfo {
}

pub fn parse_column_type(result: &ColumnQueryResult) -> ColumnType {
let mut parser_type = Parser::new(&result.column_type);

let mut ctype = if parser_type.curr().is_none() {
return Type::Unknown(String::default());
} else {
Type::from_str(result.column_type.as_str())
};
let mut ctype = Type::from_str(result.column_type.as_str());

if ctype.has_numeric_attr() {
ctype = parse_numeric_attributes(
Expand Down
Loading

0 comments on commit 82cee27

Please sign in to comment.