Skip to content

Commit

Permalink
PostgreSQLEnumType#sqlTypes() should always return Types.VARCHAR #399
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Mar 23, 2022
1 parent d11ad93 commit 1f84c01
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Expand Up @@ -45,4 +45,9 @@ public void nullSafeSet(
throws HibernateException, SQLException {
st.setObject(index, value != null ? ((Enum) value).name() : null, Types.OTHER);
}

@Override
public int[] sqlTypes() {
return new int[]{Types.VARCHAR};
}
}
Expand Up @@ -45,4 +45,9 @@ public void nullSafeSet(
throws HibernateException, SQLException {
st.setObject(index, value != null ? ((Enum) value).name() : null, Types.OTHER);
}

@Override
public int[] sqlTypes() {
return new int[]{Types.VARCHAR};
}
}
Expand Up @@ -82,4 +82,9 @@ public void nullSafeSet(
throws HibernateException, SQLException {
st.setObject(index, value != null ? ((Enum) value).name() : null, Types.OTHER);
}

@Override
public int[] sqlTypes() {
return new int[]{Types.VARCHAR};
}
}
Expand Up @@ -86,4 +86,9 @@ public void nullSafeSet(
throws HibernateException, SQLException {
st.setObject(index, value != null ? ((Enum) value).name() : null, Types.OTHER);
}

@Override
public int[] sqlTypes() {
return new int[]{Types.VARCHAR};
}
}

0 comments on commit 1f84c01

Please sign in to comment.