mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 18:53:12 +08:00
fix(chat2db-mysql): correct string conversion methods in MysqlTimestampProcessor
This commit is contained in:
@ -19,12 +19,12 @@ public class MysqlTimestampProcessor extends DefaultValueProcessor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String convertJDBCValueByType(JDBCDataValue dataValue) {
|
public String convertJDBCValueByType(JDBCDataValue dataValue) {
|
||||||
return new String(dataValue.getBytes());
|
return dataValue.getStringValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String convertJDBCValueStrByType(JDBCDataValue dataValue) {
|
public String convertJDBCValueStrByType(JDBCDataValue dataValue) {
|
||||||
return EasyStringUtils.quoteString(new String(dataValue.getBytes()));
|
return EasyStringUtils.quoteString(dataValue.getStringValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user