Skip to content

Commit

Permalink
Fix typo on timetz regex (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkelbraun authored Mar 13, 2024
1 parent 4b14014 commit e951eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/operation-node/data-type-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const COLUMN_DATA_TYPE_REGEX = [
/^binary\(\d+\)$/,
/^datetime\(\d+\)$/,
/^time\(\d+\)$/,
/^timez\(\d+\)$/,
/^timetz\(\d+\)$/,
/^timestamp\(\d+\)$/,
/^timestamptz\(\d+\)$/,
]
Expand Down
2 changes: 2 additions & 0 deletions test/node/src/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
)
Expand Down Expand Up @@ -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),',
Expand Down

0 comments on commit e951eae

Please sign in to comment.