strongduanmu commented on a change in pull request #14309:
URL: https://github.com/apache/shardingsphere/pull/14309#discussion_r776118024
##########
File path:
shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rewrite/token/generator/impl/EncryptInsertOnUpdateTokenGenerator.java
##########
@@ -72,6 +74,12 @@ protected boolean isGenerateSQLTokenForEncrypt(final
SQLStatementContext sqlStat
if (assignmentSegment.getValue() instanceof
ParameterMarkerExpressionSegment) {
return Optional.of(generateParameterSQLToken(tableName,
assignmentSegment));
}
+ if (assignmentSegment.getValue() instanceof FunctionSegment) {
+ FunctionSegment functionSegment = (FunctionSegment)
assignmentSegment.getValue();
+ if ("VALUES".equals(functionSegment.getFunctionName()) && 0 ==
functionSegment.getParameters().size()) {
Review comment:
@cheese8 Why need `0 == functionSegment.getParameters().size()` here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]