Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 1.4.0.Final
-
Fix Version/s: 1.4.1.Final
-
Component/s: oracle-connector
-
Labels:None
-
Steps to Reproduce:
-
Git Pull Request:
Description
DML statements longer than 4000 characters are incorrectly combined when several updates have same SCN. As I see it the cause is:
1) long queries are combined in getSqlRedo of RowMapper class;
2) DML for getSqlRedo supplied by query from V$LOGMNR_CONTENTS composed by logMinerContentsQuery of SqlUtils class;
3) Query from V$LOGMNR_CONTENTS contains sorting by only SCN, so when several updates have same SCN then order of parts of same queries could be confused and resulting DML became unparsable.
Maybe V$LOGMNR_CONTENTS.SEQUENCE# should also be used to sort rows properly.