Skip to content

BLOB column always shows up in Changes #328

Description

@gonozalviii

I have a Spring Boot test running against an H2. I modify a number(2) and a date column during my test.

When I run hasModifiedColumns(...) on my change, it always fails, because it thinks a BLOB column was also modified.

When I check the BLOB column with columnAmongTheModifiedOnes(...).hasValues(start, end) it says that end and start are the same.

I think the issues is, that Changes.getIndexesOfModifiedColumns() uses normal Object equals on every value (!objectAtStartPoint.equals(objectAtEndPoint))). This does not work for byte arrays.

The implementation in the Values class Values.areEqual(Value value, Object expected) on the other hand seems to be correct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions