Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Aug 24, 2023
1 parent 967b92b commit eba646f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connector/src/parser/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod tests {
use mysql_async::Row as MySqlRow;
use risingwave_common::catalog::{Field, Schema};
use risingwave_common::row::{OwnedRow, Row};
use risingwave_common::types::{DataType, ScalarImpl, ToText};
use risingwave_common::types::{DataType, ToText};
use tokio_stream::StreamExt;

use crate::parser::mysql_row_to_datums;
Expand Down Expand Up @@ -146,10 +146,10 @@ mod tests {
if let Ok(ro) = row && ro.is_some() {
let owned_row = ro.unwrap();
let d = owned_row.datum_at(2);
d.map(|scalar| {
if let Some(scalar) = d {
let v = scalar.into_timestamptz();
println!("timestamp: {}", v.to_text());
});
}
}
}
}
Expand Down

0 comments on commit eba646f

Please sign in to comment.