Skip to content

Commit

Permalink
0005097: Postgres default value support for gen_random_uuid()
Browse files Browse the repository at this point in the history
  • Loading branch information
joshahicks committed Nov 3, 2021
1 parent 31b8f54 commit a20977a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -450,7 +450,8 @@ protected void printDefaultValue(String defaultValue, int typeCode, StringBuilde
if (defaultValue != null &&
((defaultValue.endsWith("::uuid") && Types.OTHER == typeCode) ||
(defaultValue.contains("::") && Types.ARRAY == typeCode) ||
(defaultValue.contains("gen_random_uuid()")))) {
(defaultValue.endsWith("())")) ||
(defaultValue.endsWith("()")))) {
ddl.append(defaultValue);
} else if (Types.BOOLEAN == typeCode || Types.BIT == typeCode) {
boolean isNull = false;
Expand Down

0 comments on commit a20977a

Please sign in to comment.