Skip to content

add_presence_constraint breaks when data type of column is jsonb #29

Description

@kelvintyb

Encountered this bug when using rein to add a presence constraint on a column that is using the data type jsonb. Screenshot of the error message is as follows:

image 2017-10-26 at 11 31 34 am

From looking at the source code, I believe the issue stems from the method below where there is a comparison of the column with a regex matcher checking for whitespace string characters which results in a type casting error.

image 2017-10-26 at 11 36 28 am

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