Skip to content

Commit

Permalink
feat: Enable string types (#2475)
Browse files Browse the repository at this point in the history
* feat: Use nvarchar2

* Use chars
  • Loading branch information
karolisg authored Apr 4, 2024
1 parent 28f540c commit 3642fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dozer-ingestion/oracle/src/connector/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn map_data_type(
} else {
match data_type {
"VARCHAR2" => Ok(FieldType::String),
"NVARCHAR2" => unimplemented!("convert NVARCHAR2 to String"),
"NVARCHAR2" => Ok(FieldType::String),
"INTEGER" => Ok(FieldType::I128),
"NUMBER" => match (precision, scale) {
(Some(precision), Some(0)) if precision <= 19 => Ok(FieldType::Int),
Expand All @@ -66,9 +66,9 @@ fn map_data_type(
"RAW" => Ok(FieldType::Binary),
"ROWID" => Ok(FieldType::String),
"CHAR" => Ok(FieldType::String),
"NCHAR" => unimplemented!("convert NCHAR to String"),
"NCHAR" => Ok(FieldType::String),
"CLOB" => Ok(FieldType::String),
"NCLOB" => unimplemented!("convert NCLOB to String"),
"NCLOB" => Ok(FieldType::String),
"BLOB" => Ok(FieldType::Binary),
other => Err(DataTypeError::UnsupportedDataType(other.to_string())),
}?
Expand Down

0 comments on commit 3642fdc

Please sign in to comment.