From 759bef2cd4d0205aa11c09d82d9012fab3ff6188 Mon Sep 17 00:00:00 2001 From: Marcos Essindi Date: Wed, 13 Mar 2024 14:55:38 +0100 Subject: [PATCH] Fix typo on timetz regex --- src/operation-node/data-type-node.ts | 2 +- test/node/src/schema.test.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/operation-node/data-type-node.ts b/src/operation-node/data-type-node.ts index 8b48a6a9f..178694d4d 100644 --- a/src/operation-node/data-type-node.ts +++ b/src/operation-node/data-type-node.ts @@ -42,7 +42,7 @@ const COLUMN_DATA_TYPE_REGEX = [ /^binary\(\d+\)$/, /^datetime\(\d+\)$/, /^time\(\d+\)$/, - /^timez\(\d+\)$/, + /^timetz\(\d+\)$/, /^timestamp\(\d+\)$/, /^timestamptz\(\d+\)$/, ] diff --git a/test/node/src/schema.test.ts b/test/node/src/schema.test.ts index 8cd03929b..4d0cef7dd 100644 --- a/test/node/src/schema.test.ts +++ b/test/node/src/schema.test.ts @@ -68,6 +68,7 @@ for (const dialect of DIALECTS) { .notNull(), ) .addColumn('t', 'time(6)') + .addColumn('tz', 'timetz(6)') .addColumn('u', 'timestamp(6)', (col) => col.notNull().defaultTo(sql`current_timestamp`), ) @@ -100,6 +101,7 @@ for (const dialect of DIALECTS) { '"r" int8,', '"s" double precision generated always as (f + g) stored not null,', '"t" time(6),', + '"tz" timetz(6),', '"u" timestamp(6) default current_timestamp not null,', '"v" timestamptz(6),', '"w" char(4),',