You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/01/14 10:02:31 UTC
[GitHub] [incubator-shardingsphere] longjy opened a new issue #3971: Why
does the encrypted table only judge the first one,
maybe left join encrypt table,
and then judge that there is no encrypted table
longjy opened a new issue #3971: Why does the encrypted table only judge the first one, maybe left join encrypt table, and then judge that there is no encrypted table
URL: https://github.com/apache/incubator-shardingsphere/issues/3971
org.apache.shardingsphere.encrypt.rewrite.token.generator.impl.EncryptProjectionTokenGenerator#generateSQLTokens
@Override
public Collection<SubstitutableColumnNameToken> generateSQLTokens(final SQLStatementContext sqlStatementContext) {
Collection<SubstitutableColumnNameToken> result = new LinkedList<>();
Optional<SelectItemsSegment> selectItemsSegment = sqlStatementContext.getSqlStatement().findSQLSegment(SelectItemsSegment.class);
Preconditions.checkState(selectItemsSegment.isPresent());
String tableName = sqlStatementContext.getTablesContext().getSingleTableName();
Optional<EncryptTable> encryptTable = getEncryptRule().findEncryptTable(tableName);
if (!encryptTable.isPresent()) {
return Collections.emptyList();
}
for (SelectItemSegment each : selectItemsSegment.get().getSelectItems()) {
if (isEncryptLogicColumn(each, encryptTable.get())) {
result.add(generateSQLToken((ColumnSelectItemSegment) each, tableName));
}
}
return result;
}
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] terrymanu commented on issue #3971: Why
does the encrypted table only judge the first one,
maybe left join encrypt table,
and then judge that there is no encrypted table
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #3971: Why does the encrypted table only judge the first one, maybe left join encrypt table, and then judge that there is no encrypted table
URL: https://github.com/apache/incubator-shardingsphere/issues/3971#issuecomment-586868068
Closed because no response
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] terrymanu commented on issue #3971: Why
does the encrypted table only judge the first one,
maybe left join encrypt table,
and then judge that there is no encrypted table
Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #3971: Why does the encrypted table only judge the first one, maybe left join encrypt table, and then judge that there is no encrypted table
URL: https://github.com/apache/incubator-shardingsphere/issues/3971#issuecomment-582879471
Can you provide your SQL and encrypt rule configuration?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] longjy commented on issue #3971: Why
does the encrypted table only judge the first one,
maybe left join encrypt table,
and then judge that there is no encrypted table
Posted by GitBox <gi...@apache.org>.
longjy commented on issue #3971: Why does the encrypted table only judge the first one, maybe left join encrypt table, and then judge that there is no encrypted table
URL: https://github.com/apache/incubator-shardingsphere/issues/3971#issuecomment-574097667
sqlStatementContext.getTablesContext().getSingleTableName() maybe return non-encrypted table
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-shardingsphere] terrymanu closed issue #3971: Why does
the encrypted table only judge the first one, maybe left join encrypt table,
and then judge that there is no encrypted table
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #3971: Why does the encrypted table only judge the first one, maybe left join encrypt table, and then judge that there is no encrypted table
URL: https://github.com/apache/incubator-shardingsphere/issues/3971
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services