Skip to content

Commit

Permalink
Refactor EncryptProjectionTokenGenerator. (#33360)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhucong authored Oct 23, 2024
1 parent 1e53979 commit 8d8d59e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ private ColumnProjection generateProjection(final EncryptColumn encryptColumn, f
private Collection<Projection> generateProjectionsInTableSegmentSubquery(final EncryptColumn encryptColumn, final ColumnProjection columnProjection, final SubqueryType subqueryType) {
Collection<Projection> result = new LinkedList<>();
QuoteCharacter quoteCharacter = columnProjection.getName().getQuoteCharacter();
IdentifierValue cipherColumnName = new IdentifierValue(encryptColumn.getCipher().getName(), quoteCharacter);
IdentifierValue alias = SubqueryType.JOIN == subqueryType ? null : columnProjection.getAlias().orElse(columnProjection.getName());
IdentifierValue cipherColumnName = new IdentifierValue(encryptColumn.getCipher().getName(), quoteCharacter);
ParenthesesSegment leftParentheses = columnProjection.getLeftParentheses().orElse(null);
ParenthesesSegment rightParentheses = columnProjection.getRightParentheses().orElse(null);
result.add(new ColumnProjection(columnProjection.getOwner().orElse(null), cipherColumnName, alias, databaseType, leftParentheses, rightParentheses));
Expand Down

0 comments on commit 8d8d59e

Please sign in to comment.