[#7179] PostgresUtils.toPGXYZString() methods (and others) should avoid using String.replace() pre JDK 9
This commit is contained in:
parent
da08a01fb7
commit
0ab7611e89
@ -879,11 +879,13 @@ final class ResultImpl<R extends Record> implements Result<R> {
|
||||
// no break
|
||||
case ALWAYS:
|
||||
default:
|
||||
return StringUtils.replace(
|
||||
return format.quoteString()
|
||||
+ StringUtils.replace(
|
||||
StringUtils.replace(
|
||||
format.quoteString(), "\\", "\\\\"
|
||||
result, "\\", "\\\\"
|
||||
), format.quoteString(), format.quoteString() + format.quoteString()
|
||||
) + format.quoteString();
|
||||
)
|
||||
+ format.quoteString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user