Skip to content

Commit

Permalink
Merge branch 'main' into feat-AS-XDR-rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
mediuminvader committed Feb 16, 2024
2 parents 1bcb29d + 32e04b7 commit 432dc10
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct Parser {
impl Parser {
pub fn new(delimiter: &str, end: &str) -> Self {
let regex = Regex::new(&format!(
"\"(\\w+)\" (= (.+)|IS NULL)({}\\n|{})",
"\"(\\w+)\" (= (.+)|IS NULL)({} *\\n|{})",
delimiter, end
))
.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pub struct Parser {
impl Parser {
pub fn new() -> Self {
let regex =
Regex::new(r#"^update "(\w+)"\."(\w+)"\n *(?s)(.+) *where\n(?s)(.+)$"#).unwrap();
Regex::new(r#"^update "(\w+)"\."(\w+)"\n *set *\n *(?s)(.+) *where *\n(?s)(.+)$"#)
.unwrap();
Self {
regex,
new_row_parser: row::Parser::new(",", "\n"),
Expand Down Expand Up @@ -62,9 +63,10 @@ fn test_parse() {

let parser = Parser::new();
let sql_redo = r#"update "DOZER"."TRANSACTIONS"
set
"TYPE" = 'REBATE'
where
"TRANSACTION_ID" = 12001 and
where
"TRANSACTION_ID" = 12001 and
"CUSTOMER_ID" = 63147 and
"TYPE" = 'Withdrawal' and
"AMOUNT" = 9691.34 and
Expand Down
7 changes: 6 additions & 1 deletion dozer-ingestion/oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ impl Connector for OracleConnector {
.unwrap()?;
ingestor
.handle_message(IngestionMessage::TransactionInfo(
TransactionInfo::SnapshottingDone { id: None },
TransactionInfo::SnapshottingDone {
id: Some(OpIdentifier {
txid: scn,
seq_in_tx: 0,
}),
},
))
.await?;
scn
Expand Down

0 comments on commit 432dc10

Please sign in to comment.