Skip to content

Commit

Permalink
Use the widest possible SQL type for String-typed identifiers.
Browse files Browse the repository at this point in the history
See #164, previously addressed for `1.x` branch.
  • Loading branch information
armiol committed Dec 4, 2023
1 parent 4a1d0a5 commit 0f7c7d5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import static io.spine.server.storage.jdbc.Type.INT;
import static io.spine.server.storage.jdbc.Type.LONG;
import static io.spine.server.storage.jdbc.Type.STRING_255;
import static io.spine.server.storage.jdbc.Type.STRING_512;
import static io.spine.type.Json.toCompactJson;
import static io.spine.util.Exceptions.newIllegalArgumentException;
import static java.util.Objects.requireNonNull;
Expand Down Expand Up @@ -316,7 +317,7 @@ public String normalize(String id) {

@Override
public Type sqlType() {
return STRING_255;
return STRING_512;
}

@Override
Expand Down

0 comments on commit 0f7c7d5

Please sign in to comment.