Skip to content

Commit

Permalink
Add Snowflake structured data types to unmodifiable Data Types (#3752)
Browse files Browse the repository at this point in the history
Add Snowflake structured data types in the unmodifiable Data Types list to avoid incorrect result of diffChangeLog command

Co-authored-by: filipe <flautert@liquibase.org>
  • Loading branch information
LonwoLonwo and filipelautert committed Feb 13, 2023
1 parent 2bb6146 commit 8561e6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public class SnowflakeDatabase extends AbstractJdbcDatabase {

public SnowflakeDatabase() {
super.setCurrentDateTimeFunction("current_timestamp::timestamp_ntz");
super.unmodifiableDataTypes.addAll(Arrays.asList("integer", "bool", "boolean", "int4", "int8", "float4", "float8", "numeric", "bigserial", "serial", "bytea", "timestamptz"));
super.unmodifiableDataTypes.addAll(Arrays.asList("integer", "bool", "boolean", "int4", "int8", "float4", "float8", "numeric",
"bigserial", "serial", "bytea", "timestamptz", "array", "object", "variant"));
super.unquotedObjectsAreUppercased = true;
super.addReservedWords(getDefaultReservedWords());
super.defaultAutoIncrementStartWith = BigInteger.ONE;
Expand Down

0 comments on commit 8561e6c

Please sign in to comment.