Skip to content

fix: standardize TIMESTAMPTZ validation#971

Open
AyushCoder9 wants to merge 1 commit intodrawdb-io:mainfrom
AyushCoder9:fix/timestamptz-validation
Open

fix: standardize TIMESTAMPTZ validation#971
AyushCoder9 wants to merge 1 commit intodrawdb-io:mainfrom
AyushCoder9:fix/timestamptz-validation

Conversation

@AyushCoder9
Copy link
Copy Markdown
Contributor

Description

This PR improves the default value validation logic for the PostgreSQL TIMESTAMPTZ data type.

Changes

  • Refactored the checkDefault function for TIMESTAMPTZ in src/data/datatypes.js.
  • Ensures that "special values" (like now, today, etc.) are checked first.
  • The regex validation for date strings is now more robust and consistent with other timestamp types.

Rationale

Ensures that valid PostgreSQL timestamp-with-timezone strings are correctly identified and prevents false validation failures.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@AyushCoder9 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant