MysqlValueProcessor and OracleValueProcessor

This commit is contained in:
zgq
2024-06-12 10:57:46 +08:00
parent f0b90cab0d
commit 591188703a
10 changed files with 104 additions and 40 deletions

View File

@ -21,7 +21,7 @@ public class OracleBlobProcessor extends DefaultValueProcessor {
@Override
public String convertJDBCValueByType(JDBCDataValue dataValue) {
try {
return dataValue.getBlobString(true);
return dataValue.getBlobString();
} catch (Exception e) {
log.warn("convertJDBCValueByType error database: {} , error dataType: {} ",
Chat2DBContext.getDBConfig().getDbType(), dataValue.getType(), e);

View File

@ -19,13 +19,13 @@ public class OracleClobProcessor extends DefaultValueProcessor {
@Override
public String convertJDBCValueByType(JDBCDataValue dataValue) {
return dataValue.getClobString(true);
return dataValue.getClobString();
}
@Override
public String convertJDBCValueStrByType(JDBCDataValue dataValue) {
return wrap(dataValue.getClobString(false));
return wrap(dataValue.getClobString());
}
private String wrap(String value) {