Skip to content

Commit

Permalink
Added 512 character varchar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Tamayo-Rios committed Sep 13, 2023
1 parent 6d6d2b2 commit 1ad3096
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/geekbeast/postgres/PostgresDatatype.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public enum PostgresDatatype {
VARCHAR_MAX,
TEXT_UUID,
TEXT_128,
TEXT_256;
TEXT_256,
TEXT_512;

private static final EnumSet<PostgresDatatype> ARRAY_TYPES = EnumSet
.of( BYTEA_ARRAY,
Expand Down Expand Up @@ -113,6 +114,8 @@ public String sql() {
return "varchar(128)"; //For redshift support
case TEXT_256:
return "varchar(256)"; //For redshift support
case TEXT_512:
return "varchar(512)"; //For redshift support
case DOUBLE:
return "DOUBLE PRECISION";
case DOUBLE_ARRAY:
Expand Down

0 comments on commit 1ad3096

Please sign in to comment.