Skip to content

Commit

Permalink
Fix JdbcTypeHandle retained size with respect to caseSensitivity
Browse files Browse the repository at this point in the history
The field is `Optional<CaseSensitivity>` and `CaseSensitivity` is an
enum.
  • Loading branch information
findepi committed Aug 31, 2022
1 parent 182b44e commit dd54f2c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.Optional;

import static com.google.common.base.MoreObjects.toStringHelper;
import static io.airlift.slice.SizeOf.SIZE_OF_INT;
import static io.airlift.slice.SizeOf.sizeOf;
import static java.util.Objects.requireNonNull;

Expand Down Expand Up @@ -165,6 +164,6 @@ public long getRetainedSizeInBytes()
+ sizeOf(columnSize, SizeOf::sizeOf)
+ sizeOf(decimalDigits, SizeOf::sizeOf)
+ sizeOf(arrayDimensions, SizeOf::sizeOf)
+ sizeOf(caseSensitivity, ignored -> SIZE_OF_INT);
+ sizeOf(caseSensitivity, ignored -> 0);
}
}

0 comments on commit dd54f2c

Please sign in to comment.