#1880 - Cidr type stored as INET (instead of CIDR) + named as Cdir (typo)

This commit is contained in:
rob bygrave
2019-12-05 08:59:39 +13:00
parent 937df1395c
commit da5604a38d
2 changed files with 7 additions and 7 deletions
@@ -993,10 +993,10 @@ public final class DefaultTypeManager implements TypeManager {
}
if (offlineMigrationGeneration || postgres) {
addType(Cidr.class, new ScalarTypeCdir.Postgres());
addType(Cidr.class, new ScalarTypeCidr.Postgres());
addType(Inet.class, new ScalarTypeInet.Postgres());
} else {
addType(Cidr.class, new ScalarTypeCdir.Varchar());
addType(Cidr.class, new ScalarTypeCidr.Varchar());
addType(Inet.class, new ScalarTypeInet.Varchar());
}
@@ -7,11 +7,11 @@ import java.sql.SQLException;
import java.sql.Types;
/**
* ScalarType for Cdir to Varchar or Postgres CDIR.
* ScalarType for Cidr to Varchar or Postgres CIDR.
*/
public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
public abstract class ScalarTypeCidr extends ScalarTypeBaseVarchar<Cidr> {
ScalarTypeCdir() {
ScalarTypeCidr() {
super(Cidr.class, false, ExtraDbTypes.CIDR);
}
@@ -41,7 +41,7 @@ public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
/**
* Cdir to Varchar.
*/
public static class Varchar extends ScalarTypeCdir {
public static class Varchar extends ScalarTypeCidr {
@Override
public void bind(DataBind b, Cidr value) throws SQLException {
@@ -56,7 +56,7 @@ public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
/**
* Cdir to Postgres CDIR.
*/
public static class Postgres extends ScalarTypeCdir {
public static class Postgres extends ScalarTypeCidr {
@Override
public void bind(DataBind b, Cidr value) throws SQLException {