Skip to content

Support readdefault=null for zero time.Time on insert/update/query - #8

Merged
ack3rs merged 1 commit into
mainfrom
766-magic-link-bug
Mar 4, 2026
Merged

ack3rs merged 1 commit into
mainfrom
766-magic-link-bug

Conversation

@Karlsbergs

Copy link
Copy Markdown
Collaborator
  • Adds support for readdefault=null on time.Time fields.
  • With this directive, zero time values are saved as SQL NULL in Insert/Update.
  • On reads, DB NULL values map back to zero time.Time.
  • Existing behavior is unchanged when the directive is not used.
  • Adds/updates tests for Insert, Update, and Query coverage.

@ack3rs
ack3rs merged commit 8c56caf into main Mar 4, 2026
1 check passed
@ack3rs
ack3rs deleted the 766-magic-link-bug branch March 4, 2026 12:22
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.

2 participants