diff --git a/packages/transform/src/transformers/v15-to-v16.ts b/packages/transform/src/transformers/v15-to-v16.ts index 2bdd1988..e7ac6a7f 100644 --- a/packages/transform/src/transformers/v15-to-v16.ts +++ b/packages/transform/src/transformers/v15-to-v16.ts @@ -2131,6 +2131,9 @@ export class V15ToV16Transformer { result.unique = node.unique; } + if (node.nulls_not_distinct !== undefined) { + result.nulls_not_distinct = node.nulls_not_distinct; + } if (node.primary !== undefined) { result.primary = node.primary; diff --git a/packages/transform/test-utils/skip-tests/transformer-errors.ts b/packages/transform/test-utils/skip-tests/transformer-errors.ts index c47723ef..fe0fa5f2 100644 --- a/packages/transform/test-utils/skip-tests/transformer-errors.ts +++ b/packages/transform/test-utils/skip-tests/transformer-errors.ts @@ -16,11 +16,11 @@ export const transformerErrors: SkipTest[] = [ [15, 16, "original/upstream/json-102.sql", "15-16 transformer fails with function name transformation - adds pg_catalog schema qualification"], [15, 16, "latest/postgres/create_view-281.sql", "15-16 transformer fails with AST transformation mismatch"], - [15, 16, "latest/postgres/create_index-85.sql", "15-16 transformer fails with missing nulls_not_distinct property"], - [15, 16, "latest/postgres/create_index-83.sql", "15-16 transformer fails with missing nulls_not_distinct property"], - [15, 16, "latest/postgres/create_index-72.sql", "15-16 transformer fails with missing nulls_not_distinct property"], + // [15, 16, "latest/postgres/create_index-85.sql", "15-16 transformer fails with missing nulls_not_distinct property"], + // [15, 16, "latest/postgres/create_index-83.sql", "15-16 transformer fails with missing nulls_not_distinct property"], + // [15, 16, "latest/postgres/create_index-72.sql", "15-16 transformer fails with missing nulls_not_distinct property"], [15, 16, "latest/postgres/create_index-326.sql", "15-16 transformer fails with syntax error at end of input"], - [15, 16, "latest/postgres/create_index-184.sql", "15-16 transformer fails with missing nulls_not_distinct property"], + // [15, 16, "latest/postgres/create_index-184.sql", "15-16 transformer fails with missing nulls_not_distinct property"], [14, 15, "latest/postgres/create_index-345.sql", "AST transformation mismatch (extra \"num\": 1 field)"], @@ -93,4 +93,4 @@ export const transformerErrors: SkipTest[] = [ [13, 14, "latest/postgres/create_function_sql-91.sql", "AST transformer bug - converts FUNC_PARAM_DEFAULT to FUNC_PARAM_IN in CREATE FUNCTION statements with default parameter values"], [13, 14, "latest/postgres/create_function_sql-90.sql", "AST transformer bug - converts FUNC_PARAM_DEFAULT to FUNC_PARAM_IN in CREATE FUNCTION statements with default parameter values"], [13, 14, "latest/postgres/create_function_sql-115.sql", "AST transformer bug - incorrectly adds parameter names to objfuncargs in DROP FUNCTION statements"], -]; \ No newline at end of file +]; \ No newline at end of file