Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLOB data type give only EMPTY_CLOB #81

Open
sriramcms opened this issue Sep 7, 2020 · 1 comment
Open

CLOB data type give only EMPTY_CLOB #81

sriramcms opened this issue Sep 7, 2020 · 1 comment

Comments

@sriramcms
Copy link

Hi:

This is a very useful project based on logminer.
My data is Oracle 12c release 2.

In the SQL_REDO=insert statement i get EMPTY_CLOB for the CLOB data type column. every insert operation in the database i get one insert SQL and no other updates.

Do i need to make a separate query to lookup the CLOB column via JDBC. I dont know what else needs to be done to get CLOB data values along with the insert statement.

Thanks

@lidoudou1993
Copy link

There is a bug in this project.
You can add some code in createDataSchema like this.

for (String col :dataMap.keySet()) {
String value = dataMap.get(col);
String keyTabCol=owner+"."+tableName+"." + col;
dataStruct.put(col, value.equals(NULL_FIELD) ? null : reSetValue(value, tabColsMap.get(keyTabCol).getColumnSchema()));
}

then you can get CLOB data values along with the insert statement and update statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants