Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

PostgreSQL and MySQL interpret string ordering differently #762

@mrn3

Description

@mrn3

Describe the bug
Data diff results are not correct when comparing PostgreSQL and MySQL. This is because of the difference in the sorting order of hypens.

alphanum is being used to convert a string to number with that alphanum as base, so if we have hyphen - in the alphanum it is used to generate a set of strings based on range and that range will change across databases as the hyphen is treated differently by the databases.

This is also very related to #513 and may be a duplicate.

Make sure to include the following (minus sensitive information):

  • This issue is caused when issuing data-diff comparison of a PostgreSQL and MySQL database table.

Describe the environment

Debian Linux with data-diff 0.9.7.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale_immuneImmunity to stale bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions