Skip to content

Commit

Permalink
Add table names judgment for EncryptIndexColumnTokenGenerator (#32334)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingZC authored Jul 31, 2024
1 parent 54dae05 commit 0e4bac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class EncryptIndexColumnTokenGenerator implements CollectionSQLToke

@Override
public boolean isGenerateSQLToken(final SQLStatementContext sqlStatementContext) {
return sqlStatementContext instanceof IndexAvailable;
return sqlStatementContext instanceof IndexAvailable && sqlStatementContext instanceof TableAvailable && !((TableAvailable) sqlStatementContext).getTablesContext().getTableNames().isEmpty();
}

@Override
Expand Down

0 comments on commit 0e4bac9

Please sign in to comment.