Skip to content

Table containing an array column always register modification changes between start point and endpoint #325

Description

@fl0rian-p

Hi @VanRoy,

I've encountered an issue when tracking the database changes using AssertDbConnection#changes when the table has an array type column such as in the example below:

create table my_table
(
    id         uuid not null primary key,
    array_prop varchar[]
);

From what I've gathered, as we register array_prop as an object here, comparison will be done by the equals method (from here). In my case the object is a PgArray and as the `equals is not overridden, a change is always detected.

I've started working on a fix which you can see here. Do you think you could give me some feedback to be sure I'm on the right track ?

Cheers,

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions